Skip to content

Commit 130b694

Browse files
committed
code review change:
1 parent 8df1aa2 commit 130b694

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/tmt/plans/main.fmf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ prepare:
1313
if [ -z "${BOOTUPD_BIN_FULL_PATH}" ]; then
1414
echo "bootupd file not found."
1515
exit 1
16+
elif [ "$(echo "${BOOTUPD_BIN_FULL_PATH}" | wc -l)" -gt 1 ]; then
17+
echo "error: found multiple 'bootupd' binaries:" >&2
18+
echo "${BOOTUPD_BIN_FULL_PATH}" >&2
19+
exit 1
1620
fi
1721
BOOTUPD_BIN_DIR=$(dirname "${BOOTUPD_BIN_FULL_PATH}")
1822
echo "BOOTUPD_BIN_DIR=${BOOTUPD_BIN_DIR}" > /tmp/bootupd_bin_dir
@@ -25,4 +29,4 @@ prepare:
2529
how: shell
2630
script: |
2731
set -x -e -o pipefail
28-
echo "BOOTUPD_BIN_DIR=/usr/bin" > /tmp/bootupd_bin_dir
32+
echo "BOOTUPD_BIN_DIR=/usr/libexec" > /tmp/bootupd_bin_dir

0 commit comments

Comments
 (0)