Преглед изворни кода

HPCC-11960 Regression suite Wild card oddity

Add fix to handle files without '.ecl' extension.

Signed-off-by: Attila.Vamos <attila.vamos@gmail.com>
Attila.Vamos пре 10 година
родитељ
комит
052716a5fc
1 измењених фајлова са 1 додато и 3 уклоњено
  1. 1 3
      testing/regress/ecl-test

+ 1 - 3
testing/regress/ecl-test

@@ -52,9 +52,7 @@ class RegressMain:
             exit()
         eclfiles=[]   # List for ECL filenames to be executed
         for ecl in self.args.query:
-            if not ('.ecl' in ecl):
-                logging.error("%s. Not an ECL file:'%s'!" % (1,  ecl))
-            elif  ('*' in ecl) or ('?' in ecl):
+            if  ('*' in ecl) or ('?' in ecl):
                 # If there is any wildcard in ECL file name, resolve it
                 eclwild = os.path.join(self.regress.dir_ec, ecl)
                 eclfiles.extend( glob.glob(eclwild))