diff --git a/tests/Net/SSH2FunctionalTest.php b/tests/Net/SSH2FunctionalTest.php index 3078bd40..75ac304f 100644 --- a/tests/Net/SSH2FunctionalTest.php +++ b/tests/Net/SSH2FunctionalTest.php @@ -56,6 +56,6 @@ class Net_SSH2FunctionalTest extends PhpseclibFunctionalTestCase ->expects($this->atLeastOnce()) ->method('callbackMethod') ->will($this->returnValue(true)); - $ssh->exec('ls', array($callbackObject, 'callbackMethod')); + $ssh->exec('pwd', array($callbackObject, 'callbackMethod')); } } diff --git a/travis/setup-secure-shell.sh b/travis/setup-secure-shell.sh index ad8d3504..8dd4e35f 100755 --- a/travis/setup-secure-shell.sh +++ b/travis/setup-secure-shell.sh @@ -13,5 +13,5 @@ set -x USERNAME='phpseclib' PASSWORD='EePoov8po1aethu2kied1ne0' -sudo useradd "$USERNAME" +sudo useradd --create-home --base-dir /home "$USERNAME" echo "$USERNAME:$PASSWORD" | sudo chpasswd