diff options
| author | Clark Williams <williams@redhat.com> | 2010-07-16 10:29:28 -0500 |
|---|---|---|
| committer | Clark Williams <williams@redhat.com> | 2010-07-27 13:59:28 -0500 |
| commit | c2fa61517f526c1a08e1844f7107c1a898ad91b5 (patch) | |
| tree | 0ec40c09ac18aa1e7c6146ea89e8fa785622cf08 /tests | |
| parent | a910c06304056c864380a7cb6ce7ce65b5fed3b9 (diff) | |
| download | mock-c2fa61517f526c1a08e1844f7107c1a898ad91b5.tar.gz mock-c2fa61517f526c1a08e1844f7107c1a898ad91b5.tar.xz mock-c2fa61517f526c1a08e1844f7107c1a898ad91b5.zip | |
modified tests/runtests.sh to exit properly on ^c
Modified trap logic in runtests.sh to exit on SIGINT
Signed-off-by: Clark Williams <williams@redhat.com>
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/runtests.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/runtests.sh b/tests/runtests.sh index d40a7a5..c4d04bd 100755 --- a/tests/runtests.sh +++ b/tests/runtests.sh @@ -33,7 +33,7 @@ outdir=${CURDIR}/mock-unit-test MOCKCMD="sudo ./py/mock.py --resultdir=$outdir --uniqueext=$uniqueext -r $testConfig $MOCK_EXTRA_ARGS" CHROOT=/var/lib/mock/${testConfig}-$uniqueext/root -trap '$MOCKCMD --clean' INT HUP QUIT EXIT TERM +trap '$MOCKCMD --clean; exit 1' INT HUP QUIT EXIT TERM export CURDIR MOCKSRPM DIR TOP_SRCTREE testConfig uniqueext outdir MOCKCMD CHROOT |
