mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-07-15 18:30:43 +00:00
c0731a5e33
xcattest's runcmd ran each RUN: command via Perl backticks, i.e. /bin/sh. On Ubuntu /bin/sh is dash, so testcases using bashisms ([ x == y ], [[ ... ]]) error with "unexpected operator": the [ exits non-zero, the enclosing if is taken as false, and the case's distro-specific branch is silently skipped while the case still reports Passed -- a false pass. Run the command through bash via list-form open() so no intervening /bin/sh re-parses or re-expands the command's embedded quotes and backticks. EL is unaffected (its /bin/sh is already bash). Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>