From aa182e98157b21c462e8001a59c4a8fedd22ed6e Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Tue, 3 Sep 2024 12:09:03 +0200 Subject: [PATCH] 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 --- tests/pySim-prog_test/pySim-prog_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pySim-prog_test/pySim-prog_test.sh b/tests/pySim-prog_test/pySim-prog_test.sh index 215ebeee..9279c6c8 100755 --- a/tests/pySim-prog_test/pySim-prog_test.sh +++ b/tests/pySim-prog_test/pySim-prog_test.sh @@ -119,7 +119,7 @@ function gen_ok_file { # 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 }