ceph/qa/workunits/suites/bonnie.sh
Xiubo Li 907bf5214d qa/workunit: print the detail commands excuted in the scripts
This will make it to be much easier when debugging the qa tests failures.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
2023-04-06 10:38:14 +08:00

12 lines
193 B
Bash
Executable File

#!/usr/bin/env bash
set -ex
bonnie_bin=`which bonnie++`
[ $? -eq 1 ] && bonnie_bin=/usr/sbin/bonnie++
uid_flags=""
[ "`id -u`" == "0" ] && uid_flags="-u root"
$bonnie_bin $uid_flags -n 100