summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-02-12 18:21:27 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-02-12 18:21:27 +0000
commit6e0a557be67b0d1fb33017cb521bf40372876096 (patch)
treedbb58f2c1a9822884dc90adf042f930abac4c94f
parentf6bd330de053c62f301d161ed47f63de4c4192b7 (diff)
parent1aa2a093bb8d31ddd40980ee367f4dd60c6bf403 (diff)
downloadmorph-6e0a557be67b0d1fb33017cb521bf40372876096.tar.gz
Merge branch 'liw/disable-test-on-squeeze'
Reviewed-By: Richard Maw (in real life)
-rwxr-xr-xtests.deploy/deploy-rawdisk.script11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests.deploy/deploy-rawdisk.script b/tests.deploy/deploy-rawdisk.script
index 4c01ca0d..6966c520 100755
--- a/tests.deploy/deploy-rawdisk.script
+++ b/tests.deploy/deploy-rawdisk.script
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#
# Copyright (C) 2013 Codethink Limited
#
@@ -22,7 +22,14 @@
set -eu
-. "$SRCDIR/tests.as-root/setup-build"
+# Disable if Python is 2.6.
+if python --version 2>&1 | grep ' 2\.6\.' > /dev/null
+then
+ exit 0
+fi
+
+
+. "$SRCDIR/tests.deploy/setup-build"
cd "$DATADIR/workspace/branch1"
"$SRCDIR/scripts/test-morph" build linux-system
"$SRCDIR/scripts/test-morph" --log "$DATADIR/deploy.log" \