diff --git a/tests/run-tests.sh b/tests/run-tests.sh index a45ab039..e441f008 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -58,7 +58,7 @@ if [ ! -d "$modules_dir" ]; then modules_dir="../node_modules" fi -echo 'Run selenium tests for snapweb service on given IP' +echo "Run selenium tests for snapweb on $host:$port with user:$user/$sudo" USER=$user HOST=$host PORT=$port SUDO=$sudo $modules_dir/.bin/wdio -b https://$2:4201 exitcode=$? diff --git a/tests/utils/snap-cmd-util.js b/tests/utils/snap-cmd-util.js index 4d364d3b..5a6e9bcd 100644 --- a/tests/utils/snap-cmd-util.js +++ b/tests/utils/snap-cmd-util.js @@ -103,11 +103,11 @@ SnapUtil.prototype.getToken = function() { } SnapUtil.prototype.installSnap = function(name) { - return this._promisifyExec('snap install ' + name, this.isSudoRequired); + return this._promisifyExec('snap install ' + name, true); } SnapUtil.prototype.removeSnap = function(name) { - return this._promisifyExec('snap remove ' + name, this.isSudoRequired); + return this._promisifyExec('snap remove ' + name, true); } SnapUtil.prototype.snapVersion = function() {