r3592: auto-cleanup the test.$$ log files in these test scripts on control-C
[samba.git] / source4 / script / tests / test_echo.sh
index 8065483f9a061c63a40bfaafb12b642d32984326..b778e4216ad682d0d4657421a59d521b05e9eee4 100755 (executable)
@@ -14,6 +14,7 @@ domain="$4"
 shift 4
 
 testit() {
+   trap "rm -f test.$$" EXIT
    cmdline="$*"
    if ! $cmdline > test.$$ 2>&1; then
        cat test.$$;