swc-installation-test: Return 1 on failure
authorW. Trevor King <wking@tremily.us>
Tue, 1 Jan 2013 15:07:12 +0000 (10:07 -0500)
committerW. Trevor King <wking@tremily.us>
Tue, 1 Jan 2013 15:07:12 +0000 (10:07 -0500)
I doubt anyone will check the exit status for these scripts, but it's
still good to follow conventions.

swc-installation-test-1.py
swc-installation-test-2.py

index f3b5f221f01b2fe3165f1e85d2ad02d5dac0a9c0..79a98e41ab879c7b96e30c66b2a29554115a4a68 100755 (executable)
@@ -49,3 +49,4 @@ if __name__ == '__main__':
         print('Failed')
         print('Install a current version of Python!')
         print('http://www.python.org/download/releases/2.7.3/#download')
+        _sys.exit(1)
index b479c98bd0bc9e1eae09d242086b41e152631404..f7e18c8d34e3ec574df6f8505ac8818ab8197a05 100755 (executable)
@@ -606,3 +606,4 @@ if __name__ == '__main__':
         print()
         print_system_info()
         print_suggestions(instructor_fallback=True)
+        _sys.exit(1)