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:
MDW
2024-03-03 17:01:17 +01:00
committed by GitHub
parent 3663b9b305
commit faf00c35e3
2 changed files with 23 additions and 0 deletions

View File

@@ -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;