Skip to contentSkip to conversation

master - tests: aux have_writecache

PATCH David Teigland 1 participant 1 message Jun 13, 2019

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=208a09745db480d77120d0cd83743732fc216918
Commit:        208a09745db480d77120d0cd83743732fc216918
Parent:        7eaa3adedf4977352f93d8558dd0f1a0eb2c9921
Author:        David Teigland <[email protected]>
AuthorDate:    Thu Jun 13 11:36:18 2019 -0500
Committer:     David Teigland <[email protected]>
CommitterDate: Thu Jun 13 11:36:18 2019 -0500

tests: aux have_writecache

function was never defined, causing writecache.sh to be skipped

---
 test/lib/aux.sh |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
test/lib/aux.sh +8 -0
index 040c8f2..09ef9ed 100644
@@ -1478,6 +1478,14 @@ have_vdo() {
 	target_at_least dm-vdo "$@"
 }
 
+have_writecache() {
+	lvm segtypes 2>/dev/null | grep -q writecache$ || {
+		echo "writecache is not built-in." >&2
+		return 1
+	}
+	target_at_least dm-writecache "$@"
+}
+
 have_raid() {
 	target_at_least dm-raid "$@"