summaryrefslogtreecommitdiffstats
path: root/src/software/test/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/software/test/run.py')
-rwxr-xr-xsrc/software/test/run.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/software/test/run.py b/src/software/test/run.py
index 74c2cf3..8b9999c 100755
--- a/src/software/test/run.py
+++ b/src/software/test/run.py
@@ -230,7 +230,7 @@ class LMITestLoader(unittest.TestLoader):
Override of parent method to make test cases accessible to by their
names from command line.
"""
- suite = load_tests(self, None, None)
+ suite = load_tests(self, None, 'test_*')
parts = name.split('.')
node = suite
for part in parts:
@@ -291,7 +291,7 @@ def main():
cache_dir=CACHE_DIR,
repolist=repolist)
prepare_environment(args)
- test_program = unittest.main(argv=ut_args,
+ test_program = unittest.main(__name__, argv=ut_args,
testLoader=LMITestLoader(), exit=False)
if args.use_cache and not args.cache_dir:
shutil.rmtree(CACHE_DIR)
@@ -299,4 +299,3 @@ def main():
if __name__ == '__main__':
main()
-