summaryrefslogtreecommitdiff
path: root/test/shell
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2015-04-30 11:55:38 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2015-05-01 15:07:58 +0200
commitf48a4c391c2f7f92765f6608a60e79b008ead890 (patch)
treef833fb26e402fb3b80cc6ab1b4e7c7443ee367d5 /test/shell
parent11e0dc40dcae9021bb52d60403fd1a3b8b40c58c (diff)
downloadlvm2-f48a4c391c2f7f92765f6608a60e79b008ead890.tar.gz
tests: watch out for RAM size
Reduce mem-requirements on low memory boxes, activate less volumes if machine is below 0.5G. Also print mem size at test header.
Diffstat (limited to 'test/shell')
-rw-r--r--test/shell/vgchange-many.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/shell/vgchange-many.sh b/test/shell/vgchange-many.sh
index 16e051682..cbb436313 100644
--- a/test/shell/vgchange-many.sh
+++ b/test/shell/vgchange-many.sh
@@ -16,6 +16,8 @@
# Number of LVs to create
DEVICES=1000
+# On low-memory boxes let's not stress too much
+test "$(aux total_mem)" -gt 524288 || DEVICES=256
aux prepare_pvs 1 400