Add cmpSysExecTest
This commit is contained in:
17
cmpUtil.php
17
cmpUtil.php
@@ -637,6 +637,23 @@
|
||||
return explode("\n", $out);
|
||||
}
|
||||
|
||||
function cmpSysExecTest() {
|
||||
$a = array(
|
||||
"ping" ,
|
||||
"-c" ,
|
||||
"4" ,
|
||||
"127.0.0.1" ,
|
||||
);
|
||||
|
||||
$this->d("Launch");
|
||||
$this->d($a);
|
||||
|
||||
$this->cmpSysExec($a, array(
|
||||
"silent" => false,
|
||||
"eventString" => true,
|
||||
"eventStringStdOut" => array("call" => [$this, "d"])
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
function getGitStatus($dir = ".") {
|
||||
|
Reference in New Issue
Block a user