From d153bfcd0c9fedbafc819b504f8226bd36d0733f Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Thu, 12 May 2022 16:17:26 +0200 Subject: [PATCH] Test: restconf notification parallel disabled. start script -l removed --- apps/cli/cli_common.c | 4 ++-- test/test_cli.sh | 2 +- test/test_restconf_notifications.sh | 6 ++++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/cli/cli_common.c b/apps/cli/cli_common.c index 41370189..56e6a06b 100644 --- a/apps/cli/cli_common.c +++ b/apps/cli/cli_common.c @@ -599,7 +599,7 @@ cli_start_shell(clicon_handle h, cli_signal_flush(h); cli_signal_unblock(h); if (cmd){ - snprintf(bcmd, 128, "%s -l -c \"%s\"", shcmd, cmd); + snprintf(bcmd, 128, "%s -c \"%s\"", shcmd, cmd); if (system(bcmd) < 0){ cli_signal_block(h); clicon_err(OE_UNIX, errno, "system(bash -c)"); @@ -607,7 +607,7 @@ cli_start_shell(clicon_handle h, } } else{ - snprintf(bcmd, 128, "%s -l", shcmd); + snprintf(bcmd, 128, "%s ", shcmd); /* -l (login shell) but is applicable to bash only */ if (system(bcmd) < 0){ cli_signal_block(h); clicon_err(OE_UNIX, errno, "system(bash)"); diff --git a/test/test_cli.sh b/test/test_cli.sh index 6366a0e7..3382d8b4 100755 --- a/test/test_cli.sh +++ b/test/test_cli.sh @@ -52,7 +52,7 @@ delete("Delete a configuration item") { validate("Validate changes"), cli_validate(); commit("Commit the changes"), cli_commit(); quit("Quit"), cli_quit(); -shell("System command") , cli_start_shell(); +shell("System command") , cli_start_shell("bash"); copy("Copy and create a new object"){ interface("Copy interface"){ (|("name of interface to copy from")) to("Copy to interface") ("Name of interface to copy to"), cli_copy_config("candidate","//interface[%s='%s']","urn:ietf:params:xml:ns:yang:ietf-interfaces","name","name","toname"); diff --git a/test/test_restconf_notifications.sh b/test/test_restconf_notifications.sh index 8a00baa1..cc75ed99 100755 --- a/test/test_restconf_notifications.sh +++ b/test/test_restconf_notifications.sh @@ -22,7 +22,7 @@ # 2e) start sub 8s - replay from -90s w retention 60s - expect 10 notifications # Note the sleeps are mainly for valgrind usage # -# XXX There is some state/timing issue introduced in 5.7, see test-pause +# XXX There is some state/timing issue introduced in 5.7, see test-pause and parallell # Magic line must be first in script (see README.md) s="$_" ; . ./lib.sh || if [ "$s" = $0 ]; then exit 0; else return 0; fi @@ -157,7 +157,6 @@ expecteof_netconf "$clixon_netconf -D $DBG -qf $cfg" 0 "$DEFAULTHELLO" " /dev/null & @@ -277,6 +277,8 @@ if [ $nr -lt 1 -o $nr -gt 2 ]; then err 2 "$nr" fi +fi # XXX + kill $PID #--------------------------------------------------------------------