Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

benchmark: skip test-benchmark-os on IBMi #50286

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions benchmark/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
const path = require('path');
const fork = require('child_process').fork;
const CLI = require('./_cli.js');
const os = require('os');

const cli = new CLI(`usage: ./node run.js [options] [--] <category> ...
Run each benchmark in the <category> directory a single time, more than one
Expand All @@ -20,6 +21,14 @@ const cli = new CLI(`usage: ./node run.js [options] [--] <category> ...
`, { arrayArgs: ['set', 'filter', 'exclude'] });
const benchmarks = cli.benchmarks();

// IBMi does not have working uptime so don't try to run
// that benchmark
if (os.type() === 'OS400') {
const index = benchmarks.indexOf('os/uptime.js');
if (index !== -1)
benchmarks.splice(index, 1);
}

H4ad marked this conversation as resolved.
Show resolved Hide resolved
if (benchmarks.length === 0) {
console.error('No benchmarks found');
process.exitCode = 1;
Expand Down
3 changes: 0 additions & 3 deletions test/benchmark/benchmark.status
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,3 @@ prefix benchmark

[$arch==arm]

[$system==ibmi]
test-benchmark-os.js: SKIP

Loading