1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-11-30 04:39:02 +01:00

Merge pull request #307 from bantu/travis-home-directory

Setup Travis CI phpseclib user home directory accordingly.

* bantu/travis-home-directory:
  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:15:39 +02:00
commit 48a917c3f8
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