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