From 5796c5aa3eebb828557ce299595bf4d7a148995a Mon Sep 17 00:00:00 2001 From: abbycin Date: Mon, 11 Aug 2025 22:58:42 +0800 Subject: [PATCH] print error when test fail --- scripts/x.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/x.sh b/scripts/x.sh index b3d58cc..7735967 100755 --- a/scripts/x.sh +++ b/scripts/x.sh @@ -15,16 +15,19 @@ function samples() { ./target/release/kv_bench --path /home/abby/mace_bench --threads $i --iterations 100000 --mode insert --key-size ${kv_sz[j]} --value-size ${kv_sz[j+1]} if test $? -ne 0 then + echo "insert threads $i ksz ${kv_sz[j]} vsz ${kv_sz[j+1]} fail" exit 1 fi ./target/release/kv_bench --path /home/abby/mace_bench --threads $i --iterations 100000 --mode get --key-size ${kv_sz[j]} --value-size ${kv_sz[j+1]} if test $? -ne 0 then + echo "insert threads $i ksz ${kv_sz[j]} vsz ${kv_sz[j+1]} fail" exit 1 fi ./target/release/kv_bench --path /home/abby/mace_bench --threads $i --iterations 100000 --mode mixed --key-size ${kv_sz[j]} --value-size ${kv_sz[j+1]} --insert-ratio 30 if test $? -ne 0 then + echo "insert threads $i ksz ${kv_sz[j]} vsz ${kv_sz[j+1]} fail" exit 1 fi done