Ver código fonte

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

Resove regress.json file location path from regress main script path.

Signed-off-by: Attila Vamos <attila.vamos@gmail.com>
Attila Vamos 11 anos atrás
pai
commit
03bdac3767
1 arquivos alterados com 5 adições e 0 exclusões
  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: