diff options
author | Florian Dold <florian@dold.me> | 2021-01-14 17:24:44 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-01-14 17:24:44 +0100 |
commit | 6293de7bfa4d8a52091b251e2333e9710ce1b22a (patch) | |
tree | 79fa71811fff50886568fcd4a5f5d9406565e9d9 /packages/taler-wallet-cli/src/integrationtests/testrunner.ts | |
parent | 657c4b6377d405640d353a8c5e15dbb6ac59800b (diff) |
fix reserve state machine bug, use simpler denominations in revocation test
Diffstat (limited to 'packages/taler-wallet-cli/src/integrationtests/testrunner.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/testrunner.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/testrunner.ts b/packages/taler-wallet-cli/src/integrationtests/testrunner.ts index fbc25168e..2acec0627 100644 --- a/packages/taler-wallet-cli/src/integrationtests/testrunner.ts +++ b/packages/taler-wallet-cli/src/integrationtests/testrunner.ts @@ -170,7 +170,7 @@ export async function runTests(spec: TestRunSpec) { testRootDir, }; - currentChild = child_process.fork(__filename, { + currentChild = child_process.fork(__filename, ["__TWCLI_TESTWORKER"], { env: { TWCLI_RUN_TEST_INSTRUCTION: JSON.stringify(testInstr), ...process.env, @@ -251,9 +251,9 @@ export function getTestInfo(): TestInfo[] { } const runTestInstrStr = process.env["TWCLI_RUN_TEST_INSTRUCTION"]; -if (runTestInstrStr) { +if (runTestInstrStr && process.argv.includes("__TWCLI_TESTWORKER")) { // Test will call taler-wallet-cli, so we must not propagate this variable. - delete process.env["TWCLI_RUN_TEST_NAME"]; + delete process.env["TWCLI_RUN_TEST_INSTRUCTION"]; const { testRootDir, testName } = JSON.parse( runTestInstrStr, ) as RunTestChildInstruction; |