From: Jan Stancek <jstancek@redhat.com>
To: ltp-list@lists.sourceforge.net
Subject: [LTP] [PATCH 5/6 v3] cgroups/cgroup_regression_test: fix test_10 cleanup
Date: Fri, 22 Jul 2011 10:10:59 +0200 [thread overview]
Message-ID: <4E293093.1020505@redhat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 373 bytes --]
test_10 can leave cgroups umounted before cleanup,
make sure cgroups are mounted before doing cleanup.
Also keep stderr output from rmdir and umount,
if these fail it's better to have it in logs.
Signed-off-by: Jan Stancek <jstancek@redhat.com>
---
.../controllers/cgroup/cgroup_regression_test.sh | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
[-- Attachment #2: 0005-cgroups-cgroup_regression_test-fix-test_10-cleanup.patch --]
[-- Type: text/x-patch, Size: 547 bytes --]
diff --git a/testcases/kernel/controllers/cgroup/cgroup_regression_test.sh b/testcases/kernel/controllers/cgroup/cgroup_regression_test.sh
index 09563ef..19c30fe 100755
--- a/testcases/kernel/controllers/cgroup/cgroup_regression_test.sh
+++ b/testcases/kernel/controllers/cgroup/cgroup_regression_test.sh
@@ -502,8 +502,9 @@ test_10()
wait $pid1
wait $pid2
- rmdir cgroup/0 2> /dev/null
- umount cgroup/ 2> /dev/null
+ mount -t cgroup none cgroup 2> /dev/null
+ rmdir cgroup/0
+ umount cgroup/
check_kernel_bug
if [ $? -eq 1 ]; then
[-- Attachment #3: Type: text/plain, Size: 380 bytes --]
------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
[-- 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-07-22 8:11 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=4E293093.1020505@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