File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/test/java/com/github/dockerjava/netty/exec Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1010import java .io .PipedInputStream ;
1111import java .io .PipedOutputStream ;
1212import java .lang .reflect .Method ;
13+ import java .util .Locale ;
1314
1415import org .testng .ITestResult ;
16+ import org .testng .SkipException ;
1517import org .testng .annotations .AfterMethod ;
1618import org .testng .annotations .AfterTest ;
1719import org .testng .annotations .BeforeMethod ;
@@ -30,6 +32,10 @@ public class AttachContainerCmdExecTest extends AbstractNettyDockerClientTest {
3032
3133 @ BeforeTest
3234 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+ }
3339 super .beforeTest ();
3440 }
3541
You can’t perform that action at this time.
0 commit comments