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:
commit
48a917c3f8
@ -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'));
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user