Patchwork [2/4] connman_test.sh: show all processes when dumping ps

login
register
mail settings
Submitter Ross Burton
Date April 5, 2013, 3:35 p.m.
Message ID <1365176132-17102-2-git-send-email-ross.burton@intel.com>
Download mbox | patch
Permalink /patch/47503/
State Accepted
Commit 6ee4a2ba6ee9633c1fa08d3b162d6d00da307798
Headers show

Comments

Ross Burton - April 5, 2013, 3:35 p.m.
We know the grep failed because the error case is being executed, so don't do
the grep again when attempting to help diagnose the problem, as seeing the full
process list might be useful.

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 scripts/qemuimage-tests/tools/connman_test.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/scripts/qemuimage-tests/tools/connman_test.sh b/scripts/qemuimage-tests/tools/connman_test.sh
index 8ed8b8b..4c1e2f5 100644
--- a/scripts/qemuimage-tests/tools/connman_test.sh
+++ b/scripts/qemuimage-tests/tools/connman_test.sh
@@ -45,7 +45,7 @@  fi
 
 if [ $count -ne 1 ]; then
 	Target_Info "connmand has issue when running in background, Pls, check the output of ps"
-	${PS} | grep connmand
+	${PS}
 	exit 1
 fi