From: W. Trevor King Date: Tue, 1 Jan 2013 15:07:12 +0000 (-0500) Subject: swc-installation-test: Return 1 on failure X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cfd8549df8311fdef1637590afa6955db1400392;p=swc-workshop.git swc-installation-test: Return 1 on failure I doubt anyone will check the exit status for these scripts, but it's still good to follow conventions. --- diff --git a/swc-installation-test-1.py b/swc-installation-test-1.py index f3b5f22..79a98e4 100755 --- a/swc-installation-test-1.py +++ b/swc-installation-test-1.py @@ -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) diff --git a/swc-installation-test-2.py b/swc-installation-test-2.py index b479c98..f7e18c8 100755 --- a/swc-installation-test-2.py +++ b/swc-installation-test-2.py @@ -606,3 +606,4 @@ if __name__ == '__main__': print() print_system_info() print_suggestions(instructor_fallback=True) + _sys.exit(1)