diff --git a/basice2e/run.sh b/basice2e/run.sh index dbfa14e7a6b2da29d54377f0c38e0f3fb03afb98..1ca370de743d61a8e8743d7efcb15f502ab51b1a 100755 --- a/basice2e/run.sh +++ b/basice2e/run.sh @@ -154,9 +154,18 @@ CLIENTCMD="../bin/client getndf --permhost $(cat results/permserver.txt) --cert eval $CLIENTCMD >> results/ndf.json 2>&1 & PIDVAL=$! echo "$CLIENTCMD -- $PIDVAL" +wait $PIDVAL cat results/ndf.json | jq . | head -5 +file results/ndf.json + +if [ ! -s results/ndf.json ] +then + echo "results/ndf.json is empty, cannot proceed" + exit -1 +fi + echo "RUNNING CLIENTS..." runclients() {