diff options
| author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-02-28 02:43:29 +0100 |
|---|---|---|
| committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-03-03 22:52:19 +0100 |
| commit | 5b01f8bdd36d505d8f733bbed75e9f14e464357f (patch) | |
| tree | b47a09fc85b32638573a1dc03eb3ac8550bd7590 | |
| parent | 286b9d2575802e87a55665629e920fcbf89b97cf (diff) | |
vty tests: allow picking specific tests to run by name
Depends: osmo-python-tests change-id I92f90c334169f31920c63dd5c5ac8dac215065e6
Change-Id: I849455e0423e1a63d6890aef7f9c6075ad53a920
| -rw-r--r-- | openbsc/tests/vty_test_runner.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openbsc/tests/vty_test_runner.py b/openbsc/tests/vty_test_runner.py index 306936435..203b42c9f 100644 --- a/openbsc/tests/vty_test_runner.py +++ b/openbsc/tests/vty_test_runner.py @@ -1215,6 +1215,7 @@ if __name__ == '__main__': help="searchpath for config") parser.add_argument("-w", "--workdir", dest="w", help="Working directory") + parser.add_argument("test_name", nargs="*", help="(parts of) test names to run, case-insensitive") args = parser.parse_args() verbose_level = 1 @@ -1237,6 +1238,10 @@ if __name__ == '__main__': add_nat_test(suite, workdir) add_gbproxy_test(suite, workdir) add_sgsn_test(suite, workdir) + + if args.test_name: + osmoutil.pick_tests(suite, *args.test_name) + res = unittest.TextTestRunner(verbosity=verbose_level, stream=sys.stdout).run(suite) sys.exit(len(res.errors) + len(res.failures)) |
