Skip to contentSkip to conversation

eglibc-testing: Fix testing script to work well with dash

PATCH Applied Khem Raj 2 participants 2 messages Mar 2, 2012 – Mar 5, 2012

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 eglibc-testing: Fix testing script to work well with dash

Dash did not like >& so we do 2 >& 1 > /dev/null

---
 meta/recipes-core/eglibc/eglibc-testing.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
meta/recipes-core/eglibc/eglibc-testing.inc +1 -1
index c30409f..a5ce773 100644
@@ -47,7 +47,7 @@ then
 	echo "Please specify the target machine and remote user in form of user@target"
 	exit 1;
 fi
-ssh \$target ls \$PWD\ >& /dev/null
+ssh \$target ls \$PWD\  2>&1 > /dev/null
 if [ "x\$?" != "x0" ]
 then
 	echo "Failed connecting to \$target it could be because of:"
Signature · 1 line
1.7.5.4
Applied
#1 lore raw
Quoted 12 lines · Khem Raj

Dash did not like>& so we do 2>& 1> /dev/null

---
  meta/recipes-core/eglibc/eglibc-testing.inc |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
meta/recipes-core/eglibc/eglibc-testing.inc +0 -0
index c30409f..a5ce773 100644

meta/recipes-core/eglibc/eglibc-testing.inc then · line 53

Quoted 8 lines
meta/recipes-core/eglibc/eglibc-testing.inc +1 -1
@@ -47,7 +47,7 @@ then
  	echo "Please specify the target machine and remote user in form of user@target"
  	exit 1;
  fi
-ssh \$target ls \$PWD\>&  /dev/null
+ssh \$target ls \$PWD\  2>&1>  /dev/null
  if [ "x\$?" != "x0" ]
  then
  	echo "Failed connecting to \$target it could be because of:"

Merged into OE-core

Thanks
Sau!