]> wimlib.net Git - wimlib/blobdiff - tests/test-imagex
Make different threads use different FILE*'s
[wimlib] / tests / test-imagex
index 2a4f7ec14f557a370fb5515888dece5eccd9352b..2601d876d49cb01efbbf760e74088074c5fd1f41 100755 (executable)
@@ -1,12 +1,12 @@
-#!/bin/sh
+#!/bin/bash
 
 # This script does some sanity testing of the 'imagex' program.  It by no means
 # tests every aspect of wimlib comprehensively.
 
 set -e
-srcdir=${srcdir:-.}
-srcdir=`realpath $srcdir`
 cd tests
+srcdir="${srcdir:-.}/.."
+srcdir="$(cd $srcdir; pwd)"
 
 imagex() {
        echo "imagex $@"
@@ -20,7 +20,7 @@ imagex_info() {
 
 cleanup() {
        fusermount -u tmp &> /dev/null || true
-       rm -rf dir* tmp* *.wim *.swm
+       rm -rf dir* tmp* *.wim *.swm &> /dev/null || true
 }
 cleanup