diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-06-27 16:34:23 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-06-27 16:34:23 +0100 |
commit | cadfab1a20f3cfb37e1a4d69fbea001754dcba32 (patch) | |
tree | 711baccb2c36864e89fe8fcaed60b1e5d4e143fc /run.in | |
parent | 1d17a6e9d8f434f952f3c171b5a81ca6b916fa1f (diff) | |
download | libguestfs-cadfab1a20f3cfb37e1a4d69fbea001754dcba32.tar.gz libguestfs-cadfab1a20f3cfb37e1a4d69fbea001754dcba32.tar.xz libguestfs-cadfab1a20f3cfb37e1a4d69fbea001754dcba32.zip |
tests: Fix 'run --test' so it cleans up its temporary file.
This fixes commit 05d4e07918bfa9907a1fa66391e8e2e2370c64d4.
Diffstat (limited to 'run.in')
-rw-r--r-- | run.in | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -90,13 +90,13 @@ else # only print the file if the test fails. fail=0 pid=$$ - rm -f run.$pid + rm -f $b/run.$pid $libtool "$@" > $b/run.$pid 2>&1 || { fail=$? echo "$b/run --test" "$@" cat $b/run.$pid echo "$b/run: command failed with exit code $fail" } - rm -f run.$pid + rm -f $b/run.$pid exit $fail fi |