File tree 1 file changed +6
-0
lines changed
src/test/java/com/github/dockerjava/netty/exec
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 10
10
import java .io .PipedInputStream ;
11
11
import java .io .PipedOutputStream ;
12
12
import java .lang .reflect .Method ;
13
+ import java .util .Locale ;
13
14
14
15
import org .testng .ITestResult ;
16
+ import org .testng .SkipException ;
15
17
import org .testng .annotations .AfterMethod ;
16
18
import org .testng .annotations .AfterTest ;
17
19
import org .testng .annotations .BeforeMethod ;
@@ -30,6 +32,10 @@ public class AttachContainerCmdExecTest extends AbstractNettyDockerClientTest {
30
32
31
33
@ BeforeTest
32
34
public void beforeTest () throws Exception {
35
+ // io.netty.channel.epollNative#loadNativeLibrary only support Linux
36
+ if (!System .getProperty ("os.name" ).toLowerCase (Locale .UK ).trim ().startsWith ("linux" )) {
37
+ throw new SkipException ("only support Linux" );
38
+ }
33
39
super .beforeTest ();
34
40
}
35
41
You can’t perform that action at this time.
0 commit comments