summaryrefslogtreecommitdiff
path: root/tests/overlay/004
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2017-02-28 14:18:34 +0200
committerEryu Guan <eguan@redhat.com>2017-03-01 18:35:27 +0800
commit6f5ba68b7b220b60627417b4816d8f386ad9edc3 (patch)
tree950271dce5519184d24467faaea719de8761cf14 /tests/overlay/004
parent7626c8534176c96013b380843a0940044b18d6eb (diff)
overlay: rename OVERLAY_LOWER/UPPER/WORK_DIR
As preparation step for configuring test/scratch base fs for overlay tests: - Rename OVERLAY_LOWER/UPPER/WORK_DIR => OVL_LOWER/UPPER/WORK because we want to use OVL_ prefix for all base fs vars - Prepend "ovl-" prefix to lower/upper/work path values to isolate the overlay test dirs when running on a base fs that is also used to run non overlay tests - Make those vars values non-configurable, because lower/upper/work directory names are an internal test detail which should not concern the user and because we wish to simplify and document the overlay tests setup - Add helper _filter_ovl_dirs and use it to filter output of test overlay/023 which matches the constant string "work" Signed-off-by: Amir Goldstein <amir73il@gmail.com> Reviewed-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
Diffstat (limited to 'tests/overlay/004')
-rwxr-xr-xtests/overlay/0044
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/overlay/004 b/tests/overlay/004
index 4075094c..8da5170c 100755
--- a/tests/overlay/004
+++ b/tests/overlay/004
@@ -53,8 +53,8 @@ _require_user
_scratch_mkfs
# Create test file in lower dir
-lowerdir=${SCRATCH_DEV}/${OVERLAY_LOWER_DIR}
-upperdir=${SCRATCH_DEV}/${OVERLAY_UPPER_DIR}
+lowerdir=${SCRATCH_DEV}/${OVL_LOWER}
+upperdir=${SCRATCH_DEV}/${OVL_UPPER}
mkdir -p $lowerdir
touch ${lowerdir}/attr_file1
chmod 000 ${lowerdir}/attr_file1