Pārlūkot izejas kodu

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 11 gadi atpakaļ
vecāks
revīzija
5a6ea1c7ac
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  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: