소스 검색

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 년 전
부모
커밋
03bdac3767
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      testing/regress/regress

+ 5 - 0
testing/regress/regress

@@ -76,6 +76,11 @@ if __name__ == "__main__":
     timeout = -1
     timeout = -1
     if 'timeout' in args:
     if 'timeout' in args:
         timeout = args.timeout
         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
     regress = None
     try:
     try:
         if 'clusters' in args:
         if 'clusters' in args: