From 37670fafb2678d0e0a2fc48fc87a59ab3697de5b Mon Sep 17 00:00:00 2001 From: Jonathan Maw Date: Wed, 29 May 2013 15:56:34 +0100 Subject: Apply Richard Maw's suggestions --- tests.deploy/deploy-rawdisk-without-disk-size-fails.script | 9 +-------- tests.deploy/deploy-rawdisk.script | 9 +-------- 2 files changed, 2 insertions(+), 16 deletions(-) (limited to 'tests.deploy') diff --git a/tests.deploy/deploy-rawdisk-without-disk-size-fails.script b/tests.deploy/deploy-rawdisk-without-disk-size-fails.script index ea4072b5..94084a5c 100755 --- a/tests.deploy/deploy-rawdisk-without-disk-size-fails.script +++ b/tests.deploy/deploy-rawdisk-without-disk-size-fails.script @@ -21,17 +21,10 @@ set -eu -# 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" \ deploy rawdisk linux-system "$DATADIR/disk.img" > /dev/null 2>&1 -! [ -e "$DATADIR/disk.img" ] +test ! -e "$DATADIR/disk.img" diff --git a/tests.deploy/deploy-rawdisk.script b/tests.deploy/deploy-rawdisk.script index ce367ae0..bead945b 100755 --- a/tests.deploy/deploy-rawdisk.script +++ b/tests.deploy/deploy-rawdisk.script @@ -22,17 +22,10 @@ set -eu -# 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" \ deploy rawdisk linux-system "$DATADIR/disk.img" DISK_SIZE=1G > /dev/null -[ -e "$DATADIR/disk.img" ] +test -e "$DATADIR/disk.img" -- cgit v1.2.1