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

login
register
mail settings
Submitter Khem Raj
Date March 2, 2012, 10:57 p.m.
Message ID <1330729048-22399-1-git-send-email-raj.khem@gmail.com>
Download mbox | patch
Permalink /patch/22599/
State Accepted
Commit 06c783e2d6f4e3b316b230565b28d9e4c535c31b
Headers show

Comments

Khem Raj - March 2, 2012, 10:57 p.m.
Dash did not like >& so we do 2 >& 1 > /dev/null

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-core/eglibc/eglibc-testing.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Saul Wold - March 5, 2012, 10:01 p.m.
On 03/02/2012 02:57 PM, Khem Raj wrote:
> Dash did not like>&  so we do 2>&  1>  /dev/null
>
> Signed-off-by: Khem Raj<raj.khem@gmail.com>
> ---
>   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@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!

Patch

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@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:"