public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Jan Stancek <jstancek@redhat.com>
To: ltp-list@lists.sourceforge.net
Subject: [LTP] [PATCH 3/3] cgroup/memcg_regression_test: treat failed mount as error
Date: Mon, 19 Sep 2011 09:49:53 +0200	[thread overview]
Message-ID: <4E76F421.1060703@redhat.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 247 bytes --]


If test fails to mount memory subsytem, it should exit
with non-zero code.

Signed-off-by: Jan Stancek <jstancek@redhat.com>
---
  .../memcg/regression/memcg_regression_test.sh      |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)



[-- Attachment #2: 0003-cgroup-memcg_regression_test-treat-failed-mount-as-e.patch --]
[-- Type: text/x-patch, Size: 649 bytes --]

diff --git a/testcases/kernel/controllers/memcg/regression/memcg_regression_test.sh b/testcases/kernel/controllers/memcg/regression/memcg_regression_test.sh
index 55bec93..5ecfa28 100755
--- a/testcases/kernel/controllers/memcg/regression/memcg_regression_test.sh
+++ b/testcases/kernel/controllers/memcg/regression/memcg_regression_test.sh
@@ -219,7 +219,7 @@ test_4()
 }
 
 # main
-
+failed=0
 mkdir memcg/
 
 for cur in $(seq 1 $TST_TOTAL); do
@@ -228,6 +228,7 @@ for cur in $(seq 1 $TST_TOTAL); do
 	mount -t cgroup -o memory xxx memcg/
 	if [ $? -ne 0 ]; then
 		tst_resm TFAIL "failed to mount memory subsytem"
+		failed=1
 		continue
 	fi
 


[-- Attachment #3: Type: text/plain, Size: 369 bytes --]

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry&reg; mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry&reg; DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 

[-- Attachment #4: Type: text/plain, Size: 155 bytes --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

                 reply	other threads:[~2011-09-19  7:50 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=4E76F421.1060703@redhat.com \
    --to=jstancek@redhat.com \
    --cc=ltp-list@lists.sourceforge.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox