Fix the lmbench-exec/shell error when /tmp exists

This commit is contained in:
Fabing Li 2024-08-08 15:17:34 +08:00 committed by Tate, Hongliang Tian
parent 6414111cc5
commit d04111079c
2 changed files with 6 additions and 2 deletions

View File

@ -6,6 +6,8 @@ set -e
echo "*** Running the LMbench exec latency test ***"
mkdir /tmp
if [ ! -d /tmp ]; then
mkdir /tmp
fi
cp /benchmark/bin/lmbench/hello /tmp/
/benchmark/bin/lmbench/lat_proc -P 1 exec

View File

@ -6,6 +6,8 @@ set -e
echo "*** Running the LMbench shell latency test ***"
mkdir /tmp
if [ ! -d /tmp ]; then
mkdir /tmp
fi
cp /benchmark/bin/lmbench/hello /tmp/
/benchmark/bin/lmbench/lat_proc -P 1 shell