summaryrefslogtreecommitdiff
path: root/tests.branching/merge.script
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2012-09-24 12:40:27 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2012-09-24 12:40:27 +0100
commita2d72d0310b5517262d6b8e86ce9f49aaad790a9 (patch)
treef4f2e7aaab18d332c603318addb7d9afaca759da /tests.branching/merge.script
parent2bfa43ce860599b024d98d53e388b5956cb90b32 (diff)
downloadmorph-a2d72d0310b5517262d6b8e86ce9f49aaad790a9.tar.gz
Disable tests on Debian Squeeze that require Python 2.7
Our non-destructive morphology editing requires at least Python 2.7, which is not available on Squeeze.
Diffstat (limited to 'tests.branching/merge.script')
-rwxr-xr-xtests.branching/merge.script7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests.branching/merge.script b/tests.branching/merge.script
index 21a30116..9dbc2d84 100755
--- a/tests.branching/merge.script
+++ b/tests.branching/merge.script
@@ -18,6 +18,13 @@
set -eu
+# Disable test on versions of Python before 2.7.
+if ! python --version 2>&1 | grep '^Python 2\.[78]' > /dev/null
+then
+ cat "$SRCDIR/tests.branching/merge.stdout"
+ exit 0
+fi
+
# Create system branch.
cd "$DATADIR/workspace"
"$SRCDIR/scripts/test-morph" init