Skip to content

Commit 854c9ec

Browse files
committed
Only run tests for symlinks on Linux systems
1 parent bc58f5e commit 854c9ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/php/com/amazon/aws/lambda/unittest/PackagingTest.class.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
use io\streams\MemoryOutputStream;
55
use io\{File, Files, Folder, Path};
66
use lang\Environment;
7+
use test\verify\Runtime;
78
use test\{After, Assert, Before, Test, Values};
89
use util\cmd\Console;
910
use xp\lambda\{PackageLambda, Sources};
@@ -109,7 +110,7 @@ public function file_inside_directory() {
109110
Assert::false($zip->hasNext());
110111
}
111112

112-
#[Test, Values(['../../core', '%s/core'])]
113+
#[Test, Runtime(os: 'Linux'), Values(['../../core', '%s/core'])]
113114
public function link_inside_directory($target) {
114115
$link= sprintf($target, rtrim($this->tempDir->getURI(), DIRECTORY_SEPARATOR));
115116
$path= $this->create([

0 commit comments

Comments
 (0)