Переглянути джерело

Merge pull request #7054 from AttilaVamos/HPCC-13125-fix

HPCC-13125 Regression test should not fail a test case if it generates warning(s) only.

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 10 роки тому
батько
коміт
4a84fd0f12
1 змінених файлів з 4 додано та 2 видалено
  1. 4 2
      testing/regress/hpcc/common/shell.py

+ 4 - 2
testing/regress/hpcc/common/shell.py

@@ -55,8 +55,10 @@ class Shell:
             _args, stdout = PIPE, stderr = PIPE, close_fds = True, **kwargs)
         stdout, stderr = process.communicate()
         retCode = process.returncode
-        logging.debug("Shell _run retCode:: %d, stdout:'%s', stderr:'%s'",  retCode,  stdout,  stderr)
-        if retCode or len(stderr) > 0:
+        logging.debug("Shell _run retCode: %d",  retCode)
+        logging.debug("            stdout:'%s'",  stdout)
+        logging.debug("            stderr:'%s'",  stderr)
+        if retCode or ((len(stderr) > 0) and ('Error' in stderr)):
             exception = CalledProcessError(
                 process.returncode, repr(args))
             exception.output = ''.join(filter(None, [stdout, stderr]))