mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-26 11:37:33 +00: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())
|
->expects($this->atLeastOnce())
|
||||||
->method('callbackMethod')
|
->method('callbackMethod')
|
||||||
->will($this->returnValue(true));
|
->will($this->returnValue(true));
|
||||||
$ssh->exec('ls', array($callbackObject, 'callbackMethod'));
|
$ssh->exec('pwd', array($callbackObject, 'callbackMethod'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,5 +13,5 @@ set -x
|
|||||||
USERNAME='phpseclib'
|
USERNAME='phpseclib'
|
||||||
PASSWORD='EePoov8po1aethu2kied1ne0'
|
PASSWORD='EePoov8po1aethu2kied1ne0'
|
||||||
|
|
||||||
sudo useradd "$USERNAME"
|
sudo useradd --create-home --base-dir /home "$USERNAME"
|
||||||
echo "$USERNAME:$PASSWORD" | sudo chpasswd
|
echo "$USERNAME:$PASSWORD" | sudo chpasswd
|
||||||
|
Loading…
Reference in New Issue
Block a user