Skip to contentSkip to conversation

gzip/gzip_tests.sh: remove the tmp dir of test02

LTP New Cui Bixuan 2 participants 3 messages Apr 7, 2015 – May 4, 2015

lore
Share & tools
lore

Cui Bixuan

author
#0 lore raw

To clean up when test02 finished of gzip_tests.sh.

---
 testcases/commands/gzip/gzip_tests.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
testcases/commands/gzip/gzip_tests.sh +2 -0
index 5f0725c..432f992 100755
@@ -326,4 +326,6 @@ then
 	TFAILCNT=$(($TFAILCNT+1))
 fi
 
+rm -fr $LTPTMP/tst_gzip.*
+
 exit $TFAILCNT
Signature · 13 lines
1.6.0.2


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
author
#1 lore raw

PATCH v2 1/1 gzip/gzip_tests.sh: Delete the tmp_dir of test02

Do clean up when test02 finished of gzip_tests.sh

---
 testcases/commands/gzip/gzip_tests.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
testcases/commands/gzip/gzip_tests.sh +2 -0
index 5f0725c..432f992 100755
@@ -326,4 +326,6 @@ then
 	TFAILCNT=$(($TFAILCNT+1))
 fi
 
+rm -fr $LTPTMP/tst_gzip.*
+
 exit $TFAILCNT
Signature · 12 lines
1.6.0.2

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
#2 lore raw
In reply to Cui Bixuan

Hi!
Pushed, thanks.

Side note, the test should be fixed to use tst_tmpdir() and tst_resm() to return correct exit status at the end. As it is if both tests fail it will return 2 (TBROK) instead of 1 (TFAIL).

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