Skip to content

Commit

Permalink
tests: try to populate lt-ublk.{target} first in test code
Browse files Browse the repository at this point in the history
The test code runs the executable from the top directory, which is
actually one script, and finally 'lt-ublk' could be generated in .libs/,
but 'lt-ublk.${target}' can't be generated in this way, and causes
test failure, see issue github #102 when running ublk test on rhel10.

Fixes it by trying to populate 'lt-ublk.${target}' first by running
'ublk.{target} help' command.

Signed-off-by: Ming Lei <[email protected]>
  • Loading branch information
ming1 committed Feb 28, 2025
1 parent fe44908 commit a5583c7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
DIR=$(cd "$(dirname "$0")";pwd)
cd $DIR

#. $DIR/common/fio_common
# try to populate 'lt-ublk.{target}' first because 'lt-' prefix for
# 'ulbk.{target}' may be required
for UBLKT in `ls $DIR/../ublk.*`; do
$UBLKT help > /dev/null 2>&1
done

: ${UBLK:=${DIR}/../ublk}
if ! command -v "${UBLK}" &> /dev/null; then
Expand Down

0 comments on commit a5583c7

Please sign in to comment.