Fix automated tests
- The .ok files currently dictate in which pysical reader device the card must be placed. Lets remove this dependncy to make the setup more reliable. Testing in which reade a card is placed is not in the scope of our tests. - Fix bug in pysim-test.sh (test runner), so that the veriable $ADM_HEX gets reset after the execution of the tests. Change-Id: I12e6b46787efb39c5745f4e7f3cdcca9209881b8
This commit is contained in:
@@ -78,7 +78,11 @@ function check_card {
|
||||
stat ./$CARD_NAME.ok > /dev/null
|
||||
python $PYSIM_READ -p $TERMINAL > $TEMPFILE
|
||||
set +e
|
||||
CARD_DIFF=$(diff $TEMPFILE ./$CARD_NAME.ok)
|
||||
# Note: We ignore the first line of output in the diff because here
|
||||
# pysim would print the device number of the reader and we do not
|
||||
# want the test to fail just because the card is put into a different
|
||||
# reader device.
|
||||
CARD_DIFF=$(diff + 1 $TEMPFILE ./$CARD_NAME.ok)
|
||||
set -e
|
||||
|
||||
if [ "$CARD_DIFF" != "" ]; then
|
||||
@@ -156,6 +160,7 @@ function run_test {
|
||||
OPC=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
|
||||
IMSI=001010000000001
|
||||
ADM=00000000
|
||||
ADM_HEX=""
|
||||
ADM_OPT="-a"
|
||||
|
||||
source "$CARD_NAME.data"
|
||||
|
||||
Reference in New Issue
Block a user