Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
hkollmann committed Jan 21, 2025
1 parent c22b06b commit 67badda
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,14 @@ qx.Class.define("qxl.testtapper.compile.LibraryApi", {
if (s.length > 0) {
s += "&";
}
exitCode = 197;
exitCode = 254;
s += "method=" + app.argv.method;
}
if (app.argv.class) {
if (s.length > 0) {
s += "&";
}
exitCode = 197;
exitCode = 254;
s += "class=" + app.argv.class;
}
if (s.length > 0) {
Expand All @@ -271,13 +271,13 @@ qx.Class.define("qxl.testtapper.compile.LibraryApi", {
tests.push(this.__runTestInBrowser(browserType, url, app, result));
} catch (e) {
qx.tool.compiler.Console.error(e);
exitCode = 254;
exitCode = 253;
}
}
let res = await Promise.all(tests);
let sum = res.reduce((accumulator, currentValue) => accumulator + currentValue, 0);
if (sum > 0) {
exitCode = 1;
exitCode = Math.min(sum, 252);
}
result.setExitCode(exitCode);
},
Expand Down
6 changes: 4 additions & 2 deletions runtests.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/sh
npx qx test --browsers=chromium --headless
if [ $? = 5 ]; then
npx qx test --browsers=chromium --headless
exit_code=$?
echo $exit_code
if [ $exit_code = 5 ]; then
echo GOOD. Expected 5 tests to fail.
# kill $pid
exit 0
Expand Down

0 comments on commit 67badda

Please sign in to comment.