dexter has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/pysim/+/38007?usp=email )


Change subject: pySim-prog_test: supress stderr when probing for cards
......................................................................

pySim-prog_test: supress stderr when probing for cards

When probing for cards, the probing might fail in case the terminal
is empty. This results into lengthy error log output that is not
of interest.

Related: OS#6532
Change-Id: I1d44f9458a05992d79b0152d3affcfeb783cccff
---
M tests/pySim-prog_test/pySim-prog_test.sh
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/07/38007/1

diff --git a/tests/pySim-prog_test/pySim-prog_test.sh 
b/tests/pySim-prog_test/pySim-prog_test.sh
index 215ebee..9279c6c 100755
--- a/tests/pySim-prog_test/pySim-prog_test.sh
+++ b/tests/pySim-prog_test/pySim-prog_test.sh
@@ -119,7 +119,7 @@
 # reader
 function probe_card {
     TERMINAL=$1
-    RESULT=$(timeout 5 $PYSIM_PROG -p $TERMINAL -T | cut -d ":" -f 2 | tail -n 
1 | xargs)
+    RESULT=$(timeout 5 $PYSIM_PROG -p $TERMINAL -T 2> /dev/null | cut -d ":" 
-f 2 | tail -n 1 | xargs)
     echo $RESULT
 }


--
To view, visit https://gerrit.osmocom.org/c/pysim/+/38007?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I1d44f9458a05992d79b0152d3affcfeb783cccff
Gerrit-Change-Number: 38007
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <[email protected]>

Reply via email to