Skip to content

Commit

Permalink
ci: fix arg
Browse files Browse the repository at this point in the history
  • Loading branch information
abdurrahman-ledger committed Dec 13, 2024
1 parent b94c9d2 commit 4f6181b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions apps/ledger-live-mobile/scripts/e2e-ci.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import { basename } from "path";
let platform, test, build, bundle;
let speculos = "";
let cache = true;
let shard = "";

const usage = (exitCode = 1) => {
console.log(
`Usage: ${basename(
__filename,
)} -p --platform <ios|android> [-h --help] [-t --test] [-b --build] [--bundle] [--cache | --no-cache] [--speculos]`,
)} -p --platform <ios|android> [-h --help] [-t --test] [-b --build] [--bundle] [--cache | --no-cache] [--speculos] [--shard]`,
);
process.exit(exitCode);
};
Expand Down Expand Up @@ -63,7 +64,8 @@ const test_android = async () => {
--headless \\
--retries 1 \\
--runInBand \\
--cleanup`;
--cleanup \\
--shard ${shard}`;
};

const getTasksFrom = {
Expand Down Expand Up @@ -112,6 +114,9 @@ for (const argName in argv) {
case "speculos":
speculos = ":speculos";
break;
case "shard":
shard = argv[argName];
break;
default:
usage(42);
break;
Expand Down

0 comments on commit 4f6181b

Please sign in to comment.