mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-10 09:52:33 +01:00
Fix: Skip UtilsTest on windows where ls is not available (#28601)
# Fix: Skip UtilsTest on windows where ls is not available The test in question uses 'ls' which is not available on windows. This change limits the execution to non windows systems.
This commit is contained in:
@@ -55,6 +55,11 @@ class UtilsTest extends CommonClassTest
|
||||
*/
|
||||
public function testExecuteCLI()
|
||||
{
|
||||
// Needs ls. Skip test if not running on *nix system.
|
||||
if ($this->fakeAssertIfNotUnix(__METHOD__." only works on *nix")) {
|
||||
return;
|
||||
}
|
||||
|
||||
global $conf,$user,$langs,$db;
|
||||
$conf = $this->savconf;
|
||||
$user = $this->savuser;
|
||||
|
||||
Reference in New Issue
Block a user