summaryrefslogtreecommitdiffstats
path: root/src/software
diff options
context:
space:
mode:
authorMichal Minar <miminar@redhat.com>2013-11-06 10:46:52 +0100
committerMichal Minar <miminar@redhat.com>2013-11-07 10:01:17 +0100
commitcc0ac3b9363a67802dfb318daba9f131daa92f2b (patch)
tree36d077dafae78feadb199f8aab3c81aee683ff4a /src/software
parent26b6f0286e1efe5b7043ace4bc998167510169f4 (diff)
downloadopenlmi-providers-cc0ac3b9363a67802dfb318daba9f131daa92f2b.tar.gz
openlmi-providers-cc0ac3b9363a67802dfb318daba9f131daa92f2b.tar.xz
openlmi-providers-cc0ac3b9363a67802dfb318daba9f131daa92f2b.zip
software: fixed returned value of tests runner
0 shall be returned on successful run of tests and 1 otherwise. Not the other way round.
Diffstat (limited to 'src/software')
-rwxr-xr-xsrc/software/test/run.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/software/test/run.py b/src/software/test/run.py
index 8b9999c..f673d8a 100755
--- a/src/software/test/run.py
+++ b/src/software/test/run.py
@@ -295,7 +295,7 @@ def main():
testLoader=LMITestLoader(), exit=False)
if args.use_cache and not args.cache_dir:
shutil.rmtree(CACHE_DIR)
- sys.exit(test_program.result.wasSuccessful())
+ sys.exit(0 if test_program.result.wasSuccessful() else 1)
if __name__ == '__main__':
main()