From 3ffcfb3b729f21a90896bff7f88d79de2771812d Mon Sep 17 00:00:00 2001 From: yuyan0428 Date: Mon, 30 Jan 2023 09:27:33 +0000 Subject: [PATCH] Signed-off-by: yuyan0428 Signed-off-by: yuyan0428 --- src/core/command/run.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/command/run.py b/src/core/command/run.py index 8f8fb72..83dc67e 100644 --- a/src/core/command/run.py +++ b/src/core/command/run.py @@ -16,6 +16,7 @@ # limitations under the License. # +import random from pydoc import classname import time import os @@ -174,6 +175,9 @@ class Run(object): options.resource_path = self.get_hats_tests_out_path(options.productform) else: test_dict = self.get_test_dict(options) + + for key in test_dict: + random.shuffle(test_dict[key]) if not self._check_test_dictionary(test_dict): LOG.error("The test file list is empty.") -- Gitee