diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-03-24 11:57:46 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-03-24 12:23:07 +0100 |
commit | afd43a75f20fbecb047924468c84212f7aefcf0b (patch) | |
tree | d1cc82a0615c1e59ca4d2b1f7f4204be5fcb1cfa | |
parent | a126dde069ada9380ba2f7ab7e520ba4ce3e2a90 (diff) | |
download | lvm2-afd43a75f20fbecb047924468c84212f7aefcf0b.tar.gz |
tests: skip stray testing on real dev dir
Do not modify /dev dir maintained by udev.
-rw-r--r-- | test/shell/stray-device-node.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/shell/stray-device-node.sh b/test/shell/stray-device-node.sh index 7ed229388..003afb7e8 100644 --- a/test/shell/stray-device-node.sh +++ b/test/shell/stray-device-node.sh @@ -18,6 +18,9 @@ SKIP_WITH_LVMPOLLD=1 aux prepare_devs 3 get_devs +# Avoid manipulation with real /dev dir +test "$DM_DEV_DIR" = "/dev" && skip "Skipping stray test on real /dev dir" + cp -r "$dev1" "$DM_DEV_DIR/stray" vgcreate $SHARED "$vg" "${DEVICES[@]}" @@ -29,3 +32,5 @@ aux disable_dev "$dev1" pvscan vgreduce --removemissing --force $vg aux enable_dev "$dev1" + +rm -f "$DM_DEV_DIR/stray" |