Skip to contentSkip to conversation

network/echo01: fix creating existing directory

PATCH New Petr Vorel 2 participants 2 messages Dec 5, 2016 – Dec 6, 2016

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH v2 1/1 network/echo01: fix creating existing directory

$TCtmp directory is created by cmdlib.sh
+ cleanup: dont set $TCtmp (already set in tst_cleanup in cmdlib.sh)

---
Changes v1->v2:
* cleanup: don't set $TCtmp

---
 testcases/network/tcp_cmds/echo/echo01 | 2 --
 1 file changed, 2 deletions(-)
testcases/network/tcp_cmds/echo/echo01 +0 -2
index 9260f21..c111023 100755
@@ -52,7 +52,6 @@ do_setup()
 
     TC=sine
     RHOST=${RHOST:-`hostname`}
-    TCtmp=${TCtmp:-$LTPROOT/testcases/bin/echo$$}
     CLEANUP=${CLEANUP:-ON}
     CREATEFILE=createfile
     ECHOES=echoes${EXEC_SUFFIX}
@@ -75,7 +74,6 @@ do_setup()
 
 do_test()
 {
-    mkdir $TCtmp
     echo  "Creating echo file $ECHOFILE"
     if ! "$LTPROOT/testcases/bin/$CREATEFILE" $ECHOSIZE "$TCtmp/$ECHOFILE"; then
         end_testcase "$ECHOFILE not created"
Signature · 1 line
2.10.2
#1 lore raw

PATCH v2 1/1 network/echo01: fix creating existing directory

Hi!

Quoted 2 lines

$TCtmp directory is created by cmdlib.sh
+ cleanup: dont set $TCtmp (already set in tst_cleanup in cmdlib.sh)

^ ^
setup tst_setup

I've fixed these two and pushed, thanks.

Signature · 2 lines
Cyril Hrubis
[email protected]