(flags, testFilename)
| 48 | } |
| 49 | |
| 50 | function exec(flags, testFilename) { |
| 51 | try { |
| 52 | var stdout = child_process.execFileSync(jsCommand, jsArgs.concat(flags, [ testFilename ]), { |
| 53 | encoding: 'utf-8', |
| 54 | stdio: ['ignore', 'pipe', 'ignore'] |
| 55 | }); |
| 56 | |
| 57 | return /^\[SUCCESS\]$/m.test(stdout); |
| 58 | } catch (e) { |
| 59 | return false; |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | function graalvmRunner(testFilename, suite) { |
| 64 | if (exec([], testFilename)) { |