fix ci error (#445)

This commit is contained in:
ajian 2023-04-24 11:12:14 +08:00 committed by GitHub
parent 58cb4ac018
commit 86a0b62a6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,9 +74,15 @@ func TestReadWrite(t *testing.T) {
echo "$bench_file" > kv/test_raftstore/bench_test.go
go test ./kv/test_raftstore/ -run ReadWrite -v > bench.log
score=$(grep QPS: bench.log | awk '{print $3}')
rm bench.log
if [ -z "$score" ]
then
score=0
fi
if [ $(expr $score \> 1000) ]; then
echo "PASS"
else
echo "FAILED"
fi
rm bench.log