message: Node test harness: Make sure child process exits when there is an error
diff: @@ -141,6 +141,7 @@ async function main() {
  // When runId is specified, kick off a single test runner and exit when it's finished
  if (runId !== undefined) {
  + try {
  if (url === undefined) {
  console.error("Missing --url argument needed to run child process");
  process.exit(-1);
  @@ -151,7 +152,13 @@ async function main() {
  };
  const stressTest = await load(config, url, password);
  await stressTest.run(runConfig);
  + console.log(`${runId.toString().padStart(3)}> exit`);
  process.exit(0);
  + } catch (e) {
  + console.error(`${runId.toString().padStart(3)}> error: loading test`);
  + console.error(e);
  + process.exit(-1);
  + }
  }
  // When runId is not specified, this is the orchestrator process which will spawn child test runners.
  @@ -203,5 +210,6 @@ async function main() {
  main().catch(
  (error) => {
  console.error(error);
  + process.exit(-1);
  },
  );
  