1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-11 16:49:42 +01:00

Merge branch 'master' into php5

* master:
  Use pwd instead of ls. If the directory is empty callback will not be called.
  Setup Travis CI phpseclib user home directory accordingly.
This commit is contained in:
Andreas Fischer 2014-04-07 18:16:20 +02:00
commit 4d8f056631
2 changed files with 2 additions and 2 deletions

View File

@ -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'));
}
}

View File

@ -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