laforge has submitted this change. ( 
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(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved




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: merged
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I1d44f9458a05992d79b0152d3affcfeb783cccff
Gerrit-Change-Number: 38007
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>

Reply via email to