Skip to content

Commit

Permalink
restore celina's version of check_rustc.sh
Browse files Browse the repository at this point in the history
idk why the github action is failing
  • Loading branch information
carolynzech committed Dec 13, 2024
1 parent fe9604e commit 03855ef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/check_rustc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ done
HEAD_DIR=$(git rev-parse --show-toplevel)

# Temporary directory for upstream repository
RUST_DIR=$(mktemp -d 2>/dev/null || mktemp -d -t 'rustrepo')
RUST_DIR=$(mktemp -d --suffix ".rust")

# Checkout your local repository
echo "Checking out local repository..."
cd "$HEAD_DIR"
Expand Down Expand Up @@ -96,13 +97,11 @@ else
fi

# Run tests
# TODO this line causes the script to fail locally, but is required for the action to run properly -- why?
cd "$RUST_DIR/upstream"
echo "Running tests..."
./x test --stage 0 library/std

echo "Tests completed."

# Clean up the temporary directory
popd
rm -rf "$RUST_DIR"

0 comments on commit 03855ef

Please sign in to comment.