[Fuego] [PATCH 11/18] LTP: add tests to skip if tmp is mounted on tmpfs

Daniel Sangorrin daniel.sangorrin at toshiba.co.jp
Tue Jan 30 09:59:29 UTC 2018

Note: there are more tests to be added here but at least
we have the skeleton.

Signed-off-by: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
 engine/tests/Functional.LTP/fuego_test.sh | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/engine/tests/Functional.LTP/fuego_test.sh b/engine/tests/Functional.LTP/fuego_test.sh
index 5b9cb2b..e516dd8 100755
--- a/engine/tests/Functional.LTP/fuego_test.sh
+++ b/engine/tests/Functional.LTP/fuego_test.sh
@@ -140,6 +140,18 @@ function test_pre_check {
     skip_tests "munlockall02" # munlockall can be called form user space
     skip_tests "openat02" # Requires a filesystem with noatime and relatime
     skip_tests "utimensat01" # kernel patch f2b20f6ee842313a changed return value from -EACCESS to EPERM when a file is immutable and update time is NULL or UTIME_NOW
+    echo "Tests skipped if the target /tmp folder is mounted on tmpfs"
+    target_mounts=$(mktemp)
+    if get "/proc/mounts" $target_mounts; then
+        if grep "^tmpfs /tmp " $target_mounts; then
+            echo "WARNING: /tmp is mounted using tmpfs."
+            skip_tests "fallocate04"
+        fi
+    else
+        echo "WARNING: could not check if /tmp is mounted using tmpfs"
+    fi
+    rm -f $target_mounts
 function test_build {

More information about the Fuego mailing list