From 6857d88470e431dc80e7f7690d9e181c4264af93 Mon Sep 17 00:00:00 2001 From: David Lattimore Date: Sat, 4 Jan 2025 13:31:59 +1100 Subject: [PATCH] Make pre-push-tests tollerant of not having a save dir --- pre-push-tests | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pre-push-tests b/pre-push-tests index 86d909d..a57023c 100755 --- a/pre-push-tests +++ b/pre-push-tests @@ -3,4 +3,8 @@ set -e cargo fmt --check cargo test cargo clippy -- -D warnings + +if [ ! -d "target/cackle/saved-cackle-rpcs" ]; then + cargo run --release -- acl --save-requests +fi cargo run --release -- acl --replay-requests