remaining exit in test

This commit is contained in:
Olof hagsand 2020-04-28 22:40:17 +02:00
parent 94cf4a88b3
commit 5b57e68e2b

View file

@ -140,10 +140,8 @@ for mode in startup running; do
;;
esac
new "Startup format: $format mode:$mode"
echo "time sudo $clixon_backend -F1 -D $DBG -s $mode -f $cfg -y $fyang -o CLICON_XMLDB_FORMAT=$format"
# Cannot use start_backend here due to expected error case
{ time -p sudo $clixon_backend -F1 -D $DBG -s $mode -f $cfg -y $fyang -o CLICON_XMLDB_FORMAT=$format 2> /dev/null; } 2>&1 | awk '/real/ {print $2}'
exit
done
done