From: Harald Hoyer Date: Mon, 4 Jun 2012 09:35:31 +0000 (+0200) Subject: test/TEST-16-DMSQUASH: add check for python-imgcreate X-Git-Tag: 019~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c79f3883cddf561a3a4c221a0c7ce7cc22a47e06;p=thirdparty%2Fdracut.git test/TEST-16-DMSQUASH: add check for python-imgcreate --- 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 \