From 3daac5abcd5ae5f7029dc686cc9abab9fda81ceb Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Thu, 6 May 2010 08:56:32 +0000 Subject: [PATCH] copy config to /tmp/ so arm can remove --- src/dht/test_dht_tools.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/dht/test_dht_tools.sh b/src/dht/test_dht_tools.sh index 9b05b7636..0ac7e94c0 100755 --- a/src/dht/test_dht_tools.sh +++ b/src/dht/test_dht_tools.sh @@ -1,10 +1,11 @@ #!/bin/sh -armexe="gnunet-arm -c test_dht_api_peer1.conf " -putexe="gnunet-dht-put -c test_dht_api_peer1.conf " -getexe="gnunet-dht-get -c test_dht_api_peer1.conf " out=`mktemp /tmp/test-gnunet-arm-logXXXXXXXX` +tempcfg=`mktemp /tmp/test_dht_api_peer1.XXXXXXXX` checkout="check.out" +armexe="gnunet-arm -c $tempcfg " +putexe="gnunet-dht-put -c $tempcfg " +getexe="gnunet-dht-get -c $tempcfg " stop_arm() { @@ -17,6 +18,8 @@ stop_arm() fi } +cp test_dht_api_peer1.conf $tempcfg + echo -n "TEST: Starting ARM..." if ! $armexe $DEBUG -s > $out ; then echo "FAIL: error running $armexe" -- 2.25.1