mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-04 18:48:24 +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:
commit
4d8f056631
@ -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