Skip to content

Commit

Permalink
rq_cxl_tests.sh: don't silently timeout when /root/ndctl is missing
Browse files Browse the repository at this point in the history
Fail fast and print an error message instead.

There's probably a dependency missing between --options but that's a
different question.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
  • Loading branch information
marc-hb committed Jan 17, 2025
1 parent a90e8a0 commit 7448165
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/rq_cxl_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ trap cleanup EXIT
sleep 4
echo "======= auto-running $0 ========" > /dev/kmsg

cd /root/ndctl || exit
cd /root/ndctl || {
printf '<0> FATAL: %s: no /root/ndctl directory' "$0" > /dev/kmsg
exit 1
}

rm -rf build
meson setup build 2>/dev/kmsg
Expand Down

0 comments on commit 7448165

Please # to comment.