diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-12-18 20:51:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-18 20:51:22 -0500 |
commit | e54a2297e840a3b376818cd570d40fc8be87e527 (patch) | |
tree | 6e282f6e2b8dbca51ef72e9fe5ce3750dc68c95b /dev/util.js | |
parent | 2fa9b915159d0bc43687e032d5f7f53197ef0611 (diff) |
Build dry run test (#1129)
* Update testMain to support function args
* Add support for dry run and basic validation
* Don't log progress if not a TTY
* Ignore errors from fs.unlinkSync
* Add --dry-run-build-zip option to build zip in memory
* Add test-build
Diffstat (limited to 'dev/util.js')
-rw-r--r-- | dev/util.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/util.js b/dev/util.js index c17cd29a..a5d1ead9 100644 --- a/dev/util.js +++ b/dev/util.js @@ -137,9 +137,9 @@ function createDictionaryArchive(dictionaryDirectory, dictionaryName) { } -async function testMain(func) { +async function testMain(func, ...args) { try { - await func(); + await func(...args); } catch (e) { console.log(e); process.exit(-1); |