Skip to content

Commit

Permalink
Print actionable info if nextest is missing (MystenLabs#4984)
Browse files Browse the repository at this point in the history
  • Loading branch information
mystenmark authored Oct 4, 2022
1 parent b635906 commit 2602d45
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/simtest/cargo-simtest
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@ fi

RUST_FLAGS=$(IFS=, ; echo "${RUST_FLAGS[*]}")

if ! cargo nextest --help > /dev/null 2>&1; then
echo "nextest (https://nexte.st) does not appear to be installed. Please install before proceeding."
echo "You can install it by running:"
echo ""
echo " \$ cargo install cargo-nextest --locked"
echo ""
echo "or see https://nexte.st for other installation options"
exit 1
fi

CARGO_COMMAND=(nextest run --cargo-profile simulator)
if [ "$1" = "build" ]; then
shift
Expand Down

0 comments on commit 2602d45

Please sign in to comment.