From: Ramya <ramya@linux.vnet.ibm.com>
To: ltp-list@lists.sourceforge.net
Subject: [LTP] test_fs_bind.sh testcase fails to clean up files which it had created during the first run .
Date: Wed, 06 May 2015 16:43:21 +0530 [thread overview]
Message-ID: <5549F751.3070503@linux.vnet.ibm.com> (raw)
Description:
when we run the script for the first time, all the test will run
successfully and PASS .
but on the same machine if we run the same script for the 2nd time we
see TBROK .
TBROK was seen because the script was not cleaning the files it created
during the first run.
so added TWARN "did not properly clean up files" and then removing the
files and continuing with the test .
Signed-off-by: ramya BS <ramya@linux.vnet.ibm.com>
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
patch1
testscripts/test_fs_bind.sh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/testscripts/test_fs_bind.sh b/testscripts/test_fs_bind.sh
index 792fff2..348f320 100755
--- a/testscripts/test_fs_bind.sh
+++ b/testscripts/test_fs_bind.sh
@@ -343,8 +343,8 @@ save_sandbox()
if [ -e "$2/files.before" ]; then
if [ -e "$2/files.after" ]; then
- tst_brkm TBROK true "${tname}: stale catalog of
\"${sandbox}\""
- return 1
+ tst_resm TWARN true "${tname}: did not properly clean up
files"
+ rm -f "$2/files.after"
fi
when="after"
fi
--
1.7.1
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Thanks&Regards,
RamyaBS
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next reply other threads:[~2015-05-06 11:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-06 11:13 Ramya [this message]
2015-05-07 13:43 ` [LTP] test_fs_bind.sh testcase fails to clean up files which it had created during the first run Cyril Hrubis
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=5549F751.3070503@linux.vnet.ibm.com \
--to=ramya@linux.vnet.ibm.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