test/blobfs: Use Bash's time builtin instead of the separate binary
Some distro installations don't provide the time package by default. Since Bash is capable, use its time instead. Signed-off-by: Michal Berger <michalx.berger@intel.com> Change-Id: I8ca31e233c23d9c89be6afba29affe45f3f9882c Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/961 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
6d230de495
commit
64a55791cc
@ -29,7 +29,7 @@ run_step() {
|
||||
|
||||
db_bench=$1_db_bench.txt
|
||||
echo -n Start $1 test phase...
|
||||
/usr/bin/time taskset 0xFF $DB_BENCH --flagfile="$1"_flags.txt &> "$db_bench"
|
||||
time taskset 0xFF $DB_BENCH --flagfile="$1"_flags.txt &> "$db_bench"
|
||||
DB_BENCH_FILE=$(grep /dev/shm "$db_bench" | cut -f 6 -d ' ')
|
||||
gzip $DB_BENCH_FILE
|
||||
mv $DB_BENCH_FILE.gz "$1"_trace.gz
|
||||
|
Loading…
Reference in New Issue
Block a user