Skip to contentSkip to conversation

test_fs_bind.sh testcase fails to clean up files which it had created during the first run .

LTP Ramya 2 participants 2 messages May 6, 2015 – May 7, 2015

lore
Share & tools
lore

Ramya

author
#0 lore 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 .

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

patch1

  testscripts/test_fs_bind.sh |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)
testscripts/test_fs_bind.sh +1 -2
index 792fff2..348f320 100755
@@ -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

Signature · 19 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
#1 lore raw

Hi!

Quoted 15 lines
  testscripts/test_fs_bind.sh |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)
testscripts/test_fs_bind.sh +0 -1
index 792fff2..348f320 100755
@@ -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}\""

testscripts/test_fs_bind.sh +1 -1
-            return 1
+            tst_resm TWARN true "${tname}: did not properly clean up 
Quoted 5 lines

files"
+ rm -f "$2/files.after"
fi
when="after"
fi

Your patch was mangled, possibly line wrapped by your mail client.

Configure your mail client correctly or use git send-email and resend.

Signature · 13 lines
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list