From eed45bee6bdf73f7f68ec0877e2680eeb73e6952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Fri, 24 Jul 2026 13:07:17 -0300 Subject: [PATCH] test(nodech): cover comma-delimited group updates (cherry picked from commit 25c9fb3836dd4ead25987cc70205943a6c9a5adb) --- xCAT-test/autotest/testcase/nodech/cases0 | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/xCAT-test/autotest/testcase/nodech/cases0 b/xCAT-test/autotest/testcase/nodech/cases0 index 10db2ffa9..1583ded28 100644 --- a/xCAT-test/autotest/testcase/nodech/cases0 +++ b/xCAT-test/autotest/testcase/nodech/cases0 @@ -14,26 +14,27 @@ end start:nodech_noderange_table_comma -description:nodech testnode groups,=rhels5.5.Check nodech command with ,=. +description:Append multiple comma-delimited groups without duplicating an existing group. label:mn_only,ci_test,db -cmd:chdef -t node -o testnode groups=all +cmd:chdef -t node -o testnode groups=all,rhels5.5 check:rc==0 -cmd:nodech testnode groups,=rhels5.5 +cmd:nodech testnode groups,=rhels5.5,rhels5.6 check:rc==0 cmd:lsdef -t node -i groups testnode -check:output=~groups=rhels5.5,all +check:output=~groups=rhels5.6,all,rhels5.5 cmd:rmdef -t node testnode end start:nodech_noderange_table_arrow +description:Remove multiple comma-delimited groups while ignoring a group that is absent. label:mn_only,ci_test,db -cmd:chdef -t node -o testnode groups=all,rhels5.5 +cmd:chdef -t node -o testnode groups=all,rhels5.5,rhels5.6 check:rc==0 -cmd:nodech testnode groups^=rhels5.5 +cmd:nodech testnode groups^=rhels5.4,rhels5.5 check:rc==0 cmd:lsdef -t node -i groups testnode -check:output!=rhels5.5 +check:output=~groups=all,rhels5.6 cmd:rmdef -t node testnode end