[oe-commits] Khem Raj : eglibc-testing: Fix testing script to work well with dash

git at git.openembedded.org git at git.openembedded.org
Sun Mar 4 04:17:19 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: 06c783e2d6f4e3b316b230565b28d9e4c535c31b
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=06c783e2d6f4e3b316b230565b28d9e4c535c31b

Author: Khem Raj <raj.khem at gmail.com>
Date:   Fri Mar  2 14:57:28 2012 -0800

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

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

Signed-off-by: Khem Raj <raj.khem at gmail.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

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

diff --git a/meta/recipes-core/eglibc/eglibc-testing.inc b/meta/recipes-core/eglibc/eglibc-testing.inc
index c30409f..a5ce773 100644
--- a/meta/recipes-core/eglibc/eglibc-testing.inc
+++ b/meta/recipes-core/eglibc/eglibc-testing.inc
@@ -47,7 +47,7 @@ then
 	echo "Please specify the target machine and remote user in form of user at 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:"





More information about the Openembedded-commits mailing list