Clean up storage directory before running
@@ -97,7 +97,9 @@ script:
cargo clean -p sled &&
export RUSTFLAGS="-Z sanitizer=leak" &&
cargo build --features=lock_free_delays,no_jemalloc --target x86_64-unknown-linux-gnu &&
+ sudo rm -rf default.sled &&
sudo target/x86_64-unknown-linux-gnu/debug/stress2 --duration=30 &&
+ sudo target/x86_64-unknown-linux-gnu/debug/stress2 --duration=6 &&
echo "asan" &&
cargo clean -p sled_sync &&
@@ -106,7 +108,9 @@ script:
cargo clean -p sled &&
export RUSTFLAGS="-Z sanitizer=address" &&
cargo build --features=lock_free_delays,no_jemalloc --target x86_64-unknown-linux-gnu &&
+ sudo rm -rf default.sled &&
sudo target/x86_64-unknown-linux-gnu/debug/stress2 --duration=30 &&
+ sudo target/x86_64-unknown-linux-gnu/debug/stress2 --duration=6 &&
echo "tsan" &&
cargo clean -p sled_sync &&
@@ -115,7 +119,9 @@ script:
cargo clean -p sled &&
export RUSTFLAGS="-Z sanitizer=thread" &&
export TSAN_OPTIONS=suppressions=/home/travis/build/spacejam/sled/tsan_suppressions.txt &&
- cargo run --features=lock_free_delays,no_jemalloc --target x86_64-unknown-linux-gnu -- --duration=30
+ sudo rm -rf default.sled &&
+ cargo run --features=lock_free_delays,no_jemalloc --target x86_64-unknown-linux-gnu -- --duration=30 &&
+ cargo run --features=lock_free_delays,no_jemalloc --target x86_64-unknown-linux-gnu -- --duration=6
;;
crash)
pushd tests &&
