John Griffith f5168086f4 Minor refactoring to make os_testr more testable
While working on some other patches and trying to add
some unit tests there were a few things in os_testr that
made it difficult to test.

Rather than try and be super tricky, just refactor os_testr
a bit.

* Refactor get_parser to handle parse_args for us
  We'll need to explicitly pass in argv here
* Move the logic of selecting/calling the test
  runner into its own helper method (_select_call_runner)
* Modify existing tests to pass args in to get_parser
* Add a new test for runner selection

This cleans up the logic a bit and makes testing a good
deal easier.

Change-Id: I40527601613e6064cf6220f218bef1876ec69cda
2015-09-28 10:39:58 -06:00
..
2015-03-17 14:58:46 -04:00