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
This commit is contained in:
Philipp Maier
2024-09-03 12:09:03 +02:00
parent 4d1f4fde4f
commit aa182e9815

View File

@@ -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
}