From: Nathan S. Evans Date: Thu, 6 May 2010 08:56:32 +0000 (+0000) Subject: copy config to /tmp/ so arm can remove X-Git-Tag: initial-import-from-subversion-38251~21869 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3daac5abcd5ae5f7029dc686cc9abab9fda81ceb;p=oweals%2Fgnunet.git copy config to /tmp/ so arm can remove --- 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"