From: Miklos Szeredi Date: Mon, 3 Sep 2018 12:27:28 +0000 (+0200) Subject: tmpfs: don't require {TEST|SCRATCH}_DEV X-Git-Tag: v2022.05.01~1427 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=264e5358e2c2959fc473a10ddf7c08222b5a08dc;p=users%2Fhch%2Fxfstests-dev.git tmpfs: don't require {TEST|SCRATCH}_DEV tmpfs doesn't require a device and the source argument of the mount is ignored. If {TEST|SCRATCH}_DEV is not given then set them to proper strings. [Eryu: don't require SCRATCH_DEV too] Signed-off-by: Miklos Szeredi Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/common/config b/common/config index d85519a8c..1ba8d96cf 100644 --- a/common/config +++ b/common/config @@ -456,8 +456,9 @@ _check_device() fi case "$FSTYP" in - 9p) + 9p|tmpfs) # 9p mount tags are just plain strings, so anything is allowed + # tmpfs doesn't use mount source, ignore ;; overlay) if [ ! -d "$dev" ]; then @@ -657,6 +658,15 @@ get_next_config() { export RESULT_BASE="$here/results/" fi + if [ "$FSTYP" == "tmpfs" ]; then + if [ -z "TEST_DEV" ]; then + export TEST_DEV=tmpfs_test + fi + if [ -z "SCRATCH_DEV" ]; then + export TEST_DEV=tmpfs_scratch + fi + fi + # Mandatory Config values. MC="" [ -z "$EMAIL" ] && MC="$MC EMAIL"