diff options
author | Peter Mikus <pmikus@cisco.com> | 2017-05-12 08:38:51 +0200 |
---|---|---|
committer | Jan Gelety <jgelety@cisco.com> | 2017-05-17 12:18:42 +0000 |
commit | fc520fef19e7fb5821d8282bf57821fbe57e392e (patch) | |
tree | f7f1ea29a049bc6fed347020a79d6f34fcadf0be /bootstrap-vpp-verify-weekly.sh | |
parent | 2c4babd95c188b8b0038f6f39448cb469b9bc23a (diff) |
Fix start-testcase script on VIRL
- Fix pylint errors
- Add expiry option to set expiration of simulation
- Add more sanitization of exceptions
- Fix printing of debug messages to stderr
Change-Id: Iecc1fe042b6da104a164fb5701e665b6f3aa298b
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'bootstrap-vpp-verify-weekly.sh')
-rw-r--r-- | bootstrap-vpp-verify-weekly.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bootstrap-vpp-verify-weekly.sh b/bootstrap-vpp-verify-weekly.sh index fdf99f378d..ecb0ab34ee 100644 --- a/bootstrap-vpp-verify-weekly.sh +++ b/bootstrap-vpp-verify-weekly.sh @@ -24,6 +24,7 @@ VIRL_USERNAME=jenkins-in VIRL_PKEY=priv_key VIRL_SERVER_STATUS_FILE="status" VIRL_SERVER_EXPECTED_STATUS="PRODUCTION" +VIRL_SESSION_EXPIRY="620" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" @@ -186,7 +187,9 @@ function stop_virl_simulation { VIRL_SID=$(ssh ${SSH_OPTIONS} \ ${VIRL_USERNAME}@${VIRL_SERVER} \ - "start-testcase -c ${VIRL_TOPOLOGY} -r ${VIRL_RELEASE} ${VPP_PKGS_FULL[@]}") + "start-testcase -vv --copy ${VIRL_TOPOLOGY} \ + --expiry ${VIRL_SESSION_EXPIRY} \ + --release ${VIRL_RELEASE} ${VPP_PKGS_FULL[@]}") retval=$? if [ ${retval} -ne "0" ]; then echo "VIRL simulation start failed" |