summaryrefslogtreecommitdiff
path: root/tests.branching/merge-not-to-master.script
diff options
context:
space:
mode:
Diffstat (limited to 'tests.branching/merge-not-to-master.script')
-rwxr-xr-xtests.branching/merge-not-to-master.script6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests.branching/merge-not-to-master.script b/tests.branching/merge-not-to-master.script
index 3758ce3e..824e89b6 100755
--- a/tests.branching/merge-not-to-master.script
+++ b/tests.branching/merge-not-to-master.script
@@ -19,6 +19,12 @@
set -eu
+# Disable test on versions of Python before 2.7.
+if ! python --version 2>&1 | grep '^Python 2\.[78]' > /dev/null
+then
+ exit 0
+fi
+
cd "$DATADIR/workspace"
"$SRCDIR/scripts/test-morph" init