Nicolas Dumazet  committed 6747d4a

run-tests: fix --debug for .t tests

When --debug is given to the test runner, run() returns (retcode, None).
Do not try to use None output as a string, and return directly, similarly
as other testers.

  • Participants
  • Parent commits cc4e13c

Comments (0)

Files changed (1)

File tests/

         vlog("# Running", cmd)
         exitcode, output = run(cmd, options, replacements)
         # do not merge output if skipped, return hghave message instead
-        if exitcode == SKIPPED_STATUS:
+        # similarly, with --debug, output is None
+        if exitcode == SKIPPED_STATUS or output is None:
             return exitcode, output