gavinchou commented on code in PR #17576:
URL: https://github.com/apache/doris/pull/17576#discussion_r1129449450


##########
regression-test/framework/src/main/groovy/org/apache/doris/regression/RegressionTest.groovy:
##########
@@ -180,13 +180,43 @@ class RegressionTest {
         def recorder = new Recorder()
         def directoryFilter = config.getDirectoryFilter()
         if (!config.withOutLoadData) {
-            log.info('Start to run load scripts')
+            List<String> load_sources = new ArrayList<>()
+            List<String> other_sources = new ArrayList<>()
+            new File(config.suitePath).eachDir { dir ->
+                {
+                    def load_flag = 0
+                    dir.eachFileRecurse { f_01 ->
+                        if (f_01.name.contains("load")) {
+                            load_flag = 1
+                            load_sources.add(f_01.name)
+                        }

Review Comment:
   Can we just use the following pattern to classify the script files?
   ```
   if (contains(load) load.add(f)
   else other.add(f)
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to