From a4b483b96980e7cef2e1b5edc02988639f99a0fd Mon Sep 17 00:00:00 2001 From: Emma Qiao Date: Sun, 27 Apr 2025 09:46:18 +0800 Subject: [PATCH] Infra: Remove empty junit xml (#3794) * Remote results.xml when no cases ran Signed-off-by: qqiao * Change some test config to verify Signed-off-by: qqiao * Update for quotes Signed-off-by: qqiao * Move the remove results.xml in catch section Signed-off-by: qqiao * Add missed path Signed-off-by: qqiao * Change back the test stage setting Signed-off-by: qqiao --------- Signed-off-by: qqiao --- jenkins/L0_Test.groovy | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/jenkins/L0_Test.groovy b/jenkins/L0_Test.groovy index 5f2d2ee5e1..63b8257e6d 100644 --- a/jenkins/L0_Test.groovy +++ b/jenkins/L0_Test.groovy @@ -966,6 +966,13 @@ def runLLMTestlistOnPlatform(pipeline, platform, testList, config=VANILLA_CONFIG error("Error in post-debug session: ${e.message}") } } + // If the execution test list is null, remove the test result xml + sh """ + ls -all ${stageName}/ + if ! grep -q '