2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-05-08 17:50:09 +00:00
Files
xcat-core/xCAT-test
Chen Hanxiao 8bb7671a23 xcattest: proper replace vars in test cases
xcattest will replace vars in testcases.
But vars with same prefix will lead to a replacement failure.

Issue:
XCATTEST_PORT=500 XCATTEST_CN=xcat-com001 XCATTEST_PDU=xmount XCATTEST_PDUIP=192.168.200.100 xcattest -t mkdef_pdu_object

cmd:mkdef $$PDU groups=pdu ip=$$PDUIP mgt=pdu nodetype=pdu

will be:

RUN:mkdef xmount groups=pdu ip=xmountIP mgt=pdu nodetype=pdu

$$PDUIP had no chance to be substituted.

Reported-by: Yang Jian <fun_yang@foxmail.com>
Signed-off-by: Chen Hanxiao <chen_han_xiao@126.com>
2020-06-09 16:54:43 +08:00
..
2020-06-08 15:43:45 -04:00
2018-04-26 15:15:47 -04:00