Skip to content

Commit d35839b

Browse files
committed
Skip shared engine tests on amd64 machines
1 parent e80ebdf commit d35839b

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

graalpython/com.oracle.graal.python.test.integration/src/com/oracle/graal/python/test/integration/engine/SharedEngineMultithreadingTestBase.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@
5555

5656
import org.graalvm.polyglot.Context;
5757
import org.graalvm.polyglot.Engine;
58+
import org.junit.Assume;
59+
import org.junit.BeforeClass;
5860
import org.junit.Rule;
5961

6062
import com.oracle.graal.python.test.integration.CleanupRule;
@@ -73,6 +75,12 @@ public class SharedEngineMultithreadingTestBase extends PythonTests {
7375

7476
@Rule public CleanupRule cleanup = new CleanupRule();
7577

78+
@BeforeClass
79+
public static void setupClass() {
80+
Assume.assumeFalse("Polyglot isolates may run out of socket descriptors, but apparently this just happens in our amd64 runners",
81+
Boolean.getBoolean("polyglot.engine.SpawnIsolate") && !isAArch64());
82+
}
83+
7684
protected static void log(String fmt, Object... args) {
7785
if (LOG) {
7886
System.out.printf(fmt + "\n", args);

graalpython/com.oracle.graal.python.test.integration/src/org/graalvm/python/embedding/test/integration/VirtualFileSystemIntegrationTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ public void fsOperations(Context ctx, String pathPrefix) {
270270
eval(ctx, "import os; assert os.path.exists('{pathPrefix}emptydir')", pathPrefix);
271271
eval(ctx, "import os; assert os.path.exists('{pathPrefix}emptydir/')", pathPrefix);
272272
eval(ctx, "import os; assert os.path.exists('{pathPrefix}dir1/file2')", pathPrefix);
273-
Assume.assumeFalse("[GR-66484] FileNotFoundException is not translated properly to isolate and then the Python code gets a generic I/O error", Boolean.getBoolean("polyglot.engine.SpawnIsolate"));
273+
Assume.assumeFalse("[GR-66484] FileNotFoundException is not translated properly to isolate and then the Python code gets a generic I/O error",
274+
Boolean.getBoolean("polyglot.engine.SpawnIsolate"));
274275
eval(ctx, "import os; assert not os.path.exists('{pathPrefix}doesnotexist')", pathPrefix);
275276
eval(ctx, "import os; assert not os.path.exists('{pathPrefix}doesnotexist/')", pathPrefix);
276277

0 commit comments

Comments
 (0)