Explorar o código

Merge pull request #5216 from AttilaVamos/HPCC-10527-fix

HPCC-10527 Can't run the regression suite from another directory

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman %!s(int64=11) %!d(string=hai) anos
pai
achega
5a6ea1c7ac
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      testing/regress/regress

+ 5 - 0
testing/regress/regress

@@ -76,6 +76,11 @@ if __name__ == "__main__":
     timeout = -1
     if 'timeout' in args:
         timeout = args.timeout
+    # Resolve Regression Suite starting path for regress.json config file
+    # It is necessary when Regression Suite doesn't started from its home directory
+    regressionSuiteMainDir = os.path.dirname(__file__)
+    regressionSuiteFullPath = os.path.realpath(regressionSuiteMainDir)
+    args.config = str(os.path.join(regressionSuiteFullPath, args.config))
     regress = None
     try:
         if 'clusters' in args: