From d04111079cb8edf03d9a58b2bd88d4af4b11543a Mon Sep 17 00:00:00 2001 From: Fabing Li Date: Thu, 8 Aug 2024 15:17:34 +0800 Subject: [PATCH] Fix the lmbench-exec/shell error when /tmp exists --- test/benchmark/lmbench-exec/run.sh | 4 +++- test/benchmark/lmbench-shell/run.sh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test/benchmark/lmbench-exec/run.sh b/test/benchmark/lmbench-exec/run.sh index d7731142..b68c5599 100644 --- a/test/benchmark/lmbench-exec/run.sh +++ b/test/benchmark/lmbench-exec/run.sh @@ -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 \ No newline at end of file diff --git a/test/benchmark/lmbench-shell/run.sh b/test/benchmark/lmbench-shell/run.sh index a21da4b0..811bcc28 100644 --- a/test/benchmark/lmbench-shell/run.sh +++ b/test/benchmark/lmbench-shell/run.sh @@ -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 \ No newline at end of file