All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zdenek Kabelac <zkabelac@sourceware.org>
To: lvm-devel@redhat.com
Subject: main - tests: check for at least 1G of RAM
Date: Wed,  7 Sep 2022 13:04:56 +0000 (GMT)	[thread overview]
Message-ID: <20220907130456.3EB3F385841A@sourceware.org> (raw)

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=e1e05cf2b526fbd8689dca8b0b232f0b1ce8ed7c
Commit:        e1e05cf2b526fbd8689dca8b0b232f0b1ce8ed7c
Parent:        a6e47a161240e977bac5522d85e92fff3c1c9026
Author:        Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate:    Wed Aug 31 13:57:41 2022 +0200
Committer:     Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Wed Sep 7 15:00:15 2022 +0200

tests: check for at least 1G of RAM

This test requires quite some RAM to be there.
---
 test/shell/lvconvert-raid-reshape.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/shell/lvconvert-raid-reshape.sh b/test/shell/lvconvert-raid-reshape.sh
index bc6eaa733..e55ab7ab9 100644
--- a/test/shell/lvconvert-raid-reshape.sh
+++ b/test/shell/lvconvert-raid-reshape.sh
@@ -20,6 +20,8 @@ LVM_SKIP_LARGE_TESTS=0
 which mkfs.ext4 || skip
 aux have_raid 1 14 0 || skip
 
+test "$(aux total_mem)" -gt 1048576 || skip "Not enough RAM for this test"
+
 if [ $LVM_SKIP_LARGE_TESTS -eq 0 ]
 then
 	aux prepare_pvs 65 9


                 reply	other threads:[~2022-09-07 13:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220907130456.3EB3F385841A@sourceware.org \
    --to=zkabelac@sourceware.org \
    --cc=lvm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.