2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-26 12:22:15 +00:00
Commit Graph

15 Commits

Author SHA1 Message Date
Daniel Hilst f38418bd75 test(xcat-probe): the probe case measures a checkpoint line the test wrote itself
xcatprobe_xcatmn_selinux asserts the text of the SELinux checkpoint, and
probe_xcatmn_selinux_case.t built that line by hand. The line xcatprobe
prints in the GitHub Actions container carries no text, so the test passed
while the case failed.

xcatprobe held the layout in format_cmd_output, which no test can call.
This moves the layout to probe_format and leaves xcatprobe the printing.
The rendering is unchanged at every width: an identical column of output
for widths 7, 40, 79, 80, 120, 121 and 200, truncated and wrapped, with
and without colour.

The test now renders the checkpoint through probe_format at the width the
container gives, and it fails here. screen_width returns 0 for a terminal
'tput cols' cannot measure, the message is cut to the empty string, and
three assertions read '[ OK ]' where they expect the checkpoint text.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-10-22 08:49:37 -03:00
Mark Gurevich da113964b1 Better file linking for xCAT-probe 2022-06-10 10:46:17 -04:00
Mark Gurevich 47ec9264a1 Better formatting fox xcatprobe output 2022-06-06 10:06:44 -04:00
GONG Jie d64ec9a33f Remove trailing spaces in file xCAT-probe/xcatprobe 2017-12-31 23:59:59 +00:00
XuWei 34ab88985c modified depending on comments 2016-12-16 03:06:49 -05:00
Mark Gurevich fc1f1c575d xcat-probe grammar and spelling fixes 2016-08-16 13:18:18 -04:00
hu-weihua d7a683b200 fix probe bugs 2016-08-15 04:10:50 -04:00
Mark Gurevich fb911143fe perltidy all perl files, part 2 2016-07-21 13:27:40 -04:00
hu-weihua 6c67f700e1 fix some bugs and change -t to -T 2016-07-04 05:18:55 -04:00
hu-weihua 5d45460c1b modify depending on xiaopeng's new comments 2016-06-28 22:17:04 -04:00
hu-weihua 1542879a7b modify depending on comments 2016-06-28 05:43:48 -04:00
hu-weihua 8dd105afb9 implement discovery basic function 2016-06-16 22:14:48 -04:00
hu-weihua f3c7e7f156 Add new probe command to detect DHCP, base on original detect_dhcpd tool 2016-06-07 05:28:18 -04:00
hu-weihua d2e469f919 change code logic and format depending on comments come from colleagues 2016-05-31 03:24:37 -04:00
hu-weihua d29bf877de New code for xcat probe component 2016-05-26 05:45:20 -04:00