From 2bed8fe9a145d13a7ca26a7b10e033f0bbcd0cd9 Mon Sep 17 00:00:00 2001 From: Daniel Hilst <392820+dhilst@users.noreply.github.com> Date: Fri, 4 Sep 2026 10:29:48 -0300 Subject: [PATCH] fix(xcat-core): bound the pings that assert a purged node stopped resolving nodepurge/cases0 asserted that testnode1 and testnode2 no longer resolve by running 'ping' with no count and expecting a non-zero exit. When the name does not resolve the ping fails immediately, which is the passing path -- but when it DOES resolve, which is the regression the case exists to catch, the ping never returns. The cell stops there and is killed by the pipeline timeout, taking the whole run's JUnit with it, so the one case that finds a real defect is also the one that hides every other result. Bound both with -c 1 -w 2. The assertion is unchanged: a name that does not resolve, or resolves to something that does not answer, still exits non-zero. autotest_ping_bounded.t goes green on this commit. Closes #59. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com> (cherry picked from commit 187daabe3601dfe0448656c446994d91d8f794aa) --- xCAT-test/autotest/testcase/nodepurge/cases0 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-test/autotest/testcase/nodepurge/cases0 b/xCAT-test/autotest/testcase/nodepurge/cases0 index 451fdc46b..94a744e0a 100644 --- a/xCAT-test/autotest/testcase/nodepurge/cases0 +++ b/xCAT-test/autotest/testcase/nodepurge/cases0 @@ -21,9 +21,9 @@ cmd:ls /install/autoinst/testnode1* check:output=~No such file or directory cmd:ls /install/autoinst/testnode2* check:output=~No such file or directory -cmd:ping testnode1 +cmd:ping -c 1 -w 2 testnode1 check:rc!=0 -cmd:ping testnode2 +cmd:ping -c 1 -w 2 testnode2 check:rc!=0 end