From 357d43f4e3ecacebd7b031cb2a855eafe71ec276 Mon Sep 17 00:00:00 2001 From: Brian Carrier Date: Tue, 19 Aug 2014 13:54:33 -0400 Subject: [PATCH] Forced regression scripts to use python 3 --- test/script/regression.py | 5 +++++ test/script/tskdbdiff.py | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/test/script/regression.py b/test/script/regression.py index 57ff4382a1..e4a58cbf7b 100755 --- a/test/script/regression.py +++ b/test/script/regression.py @@ -1931,6 +1931,11 @@ class OS: LINUX, MAC, WIN, CYGWIN = range(4) if __name__ == "__main__": + + if sys.hexversion < 0x03000000: + print("Python 3 required") + sys.exit(1) + global SYS if _platform == "linux" or _platform == "linux2": SYS = OS.LINUX diff --git a/test/script/tskdbdiff.py b/test/script/tskdbdiff.py index e107515861..e5a2ec2dc0 100755 --- a/test/script/tskdbdiff.py +++ b/test/script/tskdbdiff.py @@ -398,5 +398,9 @@ def main(): if __name__ == "__main__": + if sys.hexversion < 0x03000000: + print("Python 3 required") + sys.exit(1) + sys.exit(main())