From c79f3883cddf561a3a4c221a0c7ce7cc22a47e06 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Mon, 4 Jun 2012 11:35:31 +0200 Subject: [PATCH] test/TEST-16-DMSQUASH: add check for python-imgcreate --- test/TEST-16-DMSQUASH/test.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/TEST-16-DMSQUASH/test.sh b/test/TEST-16-DMSQUASH/test.sh index 08781192a..9a1005886 100755 --- a/test/TEST-16-DMSQUASH/test.sh +++ b/test/TEST-16-DMSQUASH/test.sh @@ -6,6 +6,14 @@ KVERSION=${KVERSION-$(uname -r)} # Uncomment this to debug failures #DEBUGFAIL="rd.shell rd.break" +test_check() { + if ! [ -d "/usr/lib/python2.7/site-packages/imgcreate" ]; then + echo "python-imgcreate not installed" + return 1 + fi + return 0 +} + test_run() { $testdir/run-qemu \ -boot order=d \ -- 2.47.3