From 77c4d40de0ed76811837b3b47c3eacc6a0195f57 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Wed, 25 Oct 2017 17:08:54 -0400 Subject: [PATCH] check if mounted Signed-off-by: Jess Frazelle --- lkp-tests/runbench | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lkp-tests/runbench b/lkp-tests/runbench index db98d24..7679790 100755 --- a/lkp-tests/runbench +++ b/lkp-tests/runbench @@ -13,7 +13,9 @@ if [[ ! -f "$JOB_FILE" ]]; then fi # mount the debug filesystem -mount -t debugfs none /sys/kernel/debug/ +if ! grep -qs '/sys/kernel/debug' /proc/mounts; then + mount -t debugfs none /sys/kernel/debug/ +fi echo "Installing dependencies for ${ARG}..." lkp install "$JOB_FILE"