2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-23 19:50:21 +00:00

Modified xcattest check:output to enforce stricter syntax checking

This commit is contained in:
besawn
2022-04-21 16:02:29 -04:00
parent 0bf020f200
commit ee759c065d

View File

@@ -1435,8 +1435,7 @@ sub run_case {
log_this($running_log_fd, "CHECK:rc $op $rvalue\t[Pass]");
push(@caselog, "CHECK:rc $op $rvalue\t[Pass]");
}
} elsif ($check =~ /output\s*([=!~]+)\s*(\S.*)/
&& $check !~ /output\s*([=!~])\1/) {
} elsif ($check =~ /output\s*(==|!=|=~|!~)\s*(\S.*)/) {
my $lvalue = join("\n", @output);
my $op = $1;
my $rvalue = $2;