From cfd8549df8311fdef1637590afa6955db1400392 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 1 Jan 2013 10:07:12 -0500 Subject: [PATCH] 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. --- swc-installation-test-1.py | 1 + swc-installation-test-2.py | 1 + 2 files changed, 2 insertions(+) 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) -- 2.26.2