xfs
[Top] [All Lists]

[PATCH] xfstests: set correct seqres variable in new when creating test

To: xfs@xxxxxxxxxxx
Subject: [PATCH] xfstests: set correct seqres variable in new when creating test template
From: Eryu Guan <eguan@xxxxxxxxxx>
Date: Mon, 1 Apr 2013 18:58:15 +0800
Cc: Eryu Guan <eguan@xxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
When setting seqres in the new script, '$' should be escaped,
otherwise seqres will be set to '/' not '$RESULT_DIR/$seq'

Signed-off-by: Eryu Guan <eguan@xxxxxxxxxx>
---
 new | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/new b/new
index d9c38c8..2bc1e8f 100755
--- a/new
+++ b/new
@@ -106,7 +106,7 @@ cat <<End-of-File >$id
 #
 # creator
 seq=\`basename \$0\`
-seqres=$RESULT_DIR/$seq
+seqres=\$RESULT_DIR/\$seq
 echo "QA output created by \$seq"
 
 here=\`pwd\`
-- 
1.8.1.4

<Prev in Thread] Current Thread [Next in Thread>