test: cleaned up stty get/set in tests

This commit is contained in:
Olof hagsand 2023-09-22 13:43:27 +02:00
parent 2603b6f139
commit 2b6bd4fb5c
4 changed files with 9 additions and 8 deletions

View file

@ -294,7 +294,6 @@ function testrun()
new "start restconf daemon"
# inline of start_restconf, cant make quotes to work
echo "sudo -u $wwwstartuser -s $clixon_restconf $RCLOG -D $DBG -f $cfg -R $RESTCONFIG1"
STTYSETTINGS=$(stty -g) # reset in wait_restconf
sudo -u $wwwstartuser -s $clixon_restconf $RCLOG -D $DBG -f $cfg -R "$RESTCONFIG1" </dev/null &>/dev/null &
if [ $? -ne 0 ]; then
err1 "expected 0" "$?"