Skip to content

Commit 02a4230

Browse files
committed
Fix testsim1302 and testms1302 regression test failures
- test3b-dnC_2ant and test3b-rx2_2ant: Add testsim1302 to single-antenna variant check. The ral_lgw2.c::ral_altAntennas() always returns 0, so testsim1302 doesn't support multi-antenna like the master/slave variants do. - test3-updn-tls: Add testms1302 to master/slave variant check for radioinit args. Both testms and testms1302 use master/slave mode and need the slave index in the arguments.
1 parent 2518af2 commit 02a4230

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

regr-tests/test3-updn-tls/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function cleanup () {
3535
. ../testlib.sh
3636

3737
# radioinit args
38-
if [[ "$TEST_VARIANT" = "testms" ]]; then
38+
if [[ "$TEST_VARIANT" = "testms" || "$TEST_VARIANT" = "testms1302" ]]; then
3939
riargs="./spidev 0"
4040
else
4141
riargs="./spidev"

regr-tests/test3b-dnC_2ant/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
muxs = None
4545
sim = None
4646

47-
n_ant = 1 if os.environ['TEST_VARIANT']=='testsim' else 2
47+
n_ant = 1 if os.environ['TEST_VARIANT'] in ('testsim', 'testsim1302') else 2
4848
omni = (os.environ['ANTENNA_TYPE'] == 'omni')
4949

5050

regr-tests/test3b-rx2_2ant/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
muxs = None
4545
sim = None
4646

47-
n_ant = 1 if os.environ['TEST_VARIANT']=='testsim' else 2
47+
n_ant = 1 if os.environ['TEST_VARIANT'] in ('testsim', 'testsim1302') else 2
4848
omni = (os.environ['ANTENNA_TYPE'] == 'omni')
4949

5050

0 commit comments

Comments
 (0)