Skip to content

Commit ec6ea99

Browse files
committed
Skip native standalone smoke test when it's not going to be built.
1 parent fd97b64 commit ec6ea99

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

graal-nodejs/ci.jsonnet

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,14 @@ local ci = import '../ci.jsonnet';
4848
['${GRAALVM_HOME}/bin/node', '-e', "console.log('Hello, World!')"],
4949
['${GRAALVM_HOME}/bin/npm', '--version'],
5050
# standalone smoke tests
51-
['set-export', 'STANDALONE_HOME', ['mx', '--quiet', 'standalone-home', 'nodejs', '--type=native']],
51+
['set-export', 'STANDALONE_HOME', ['mx', '--quiet', 'standalone-home', 'nodejs', '--type=jvm']],
5252
['${STANDALONE_HOME}/bin/node', '-e', "console.log('Hello, World!')"],
5353
['${STANDALONE_HOME}/bin/npm', '--version'],
54-
['set-export', 'STANDALONE_HOME', ['mx', '--quiet', 'standalone-home', 'nodejs', '--type=jvm']],
54+
] + (if std.find('substratevm', super.suiteimports) != [] then [
55+
['set-export', 'STANDALONE_HOME', ['mx', '--quiet', 'standalone-home', 'nodejs', '--type=native']],
5556
['${STANDALONE_HOME}/bin/node', '-e', "console.log('Hello, World!')"],
5657
['${STANDALONE_HOME}/bin/npm', '--version'],
57-
],
58+
] else []),
5859
},
5960

6061
local gateCoverage = {

0 commit comments

Comments
 (0)