Since e2image can be optionally compiled out, we tested to see if
e2image was built; but using "test -x $E2IMAGE" fails if e2image is
something like "valgrind --simhints=lax-ioctls ../misc/e2image".
Define and use $E2IMAGE_EXE, much like we have done with e2undo and
resize2fs.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
printf "Create/convert raw and qcow2 disk images: "
-if test -x $E2IMAGE; then
+if test -x $E2IMAGE_EXE; then
ORIG_IMAGES="image1024.orig image2048.orig image4096.orig"
rm -f _image.* $MD5_TMP >/dev/null 2>&1
+else #if test -x $E2IMAGE_EXE; then
+ rm -f $test_name.ok $test_name.failed
+ echo "skipped"
fi
CHATTR="$USE_VALGRIND../misc/chattr"
LSATTR="$USE_VALGRIND ../misc/lsattr"
E2IMAGE="$USE_VALGRIND ../misc/e2image"
+E2IMAGE_EXE="../misc/e2image"
DEBUGFS="$USE_VALGRIND ../debugfs/debugfs"
TEST_BITS="../debugfs/debugfs"
RESIZE2FS_EXE="../resize/resize2fs"