Skip to content

Commit

Permalink
Add autopts config for local testing
Browse files Browse the repository at this point in the history
DNM
  • Loading branch information
ilhanates committed Jan 17, 2025
1 parent ac38032 commit 694e280
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
2 changes: 1 addition & 1 deletion autopts/bot/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(self, **kwargs):
super().__init__(**kwargs)

self.add_argument('--nb', dest='no_build', action='store_true',
help='Skip build and flash in bot mode.', default=False)
help='Skip build and flash in bot mode.', default=True)

self.add_argument('--simple', action='store_true',
help='Skip build and flash in bot mode.', default=False)
Expand Down
49 changes: 49 additions & 0 deletions config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
from autopts.bot.iut_config.zephyr import iut_config

BotProjects = []

z = zephyr_nrf52 = {
'name': 'zephyr'
}

# ****************************************************************************
# AutoPTS configuration
# ****************************************************************************
z['auto_pts'] = {
'server_ip': ['10.250.15.146'],
'local_ip' : ['10.250.15.149'],
'cli_port': [65001],
'srv_port': [65000],
'project_path': '/work/zephyr',
'workspace': 'softdevice',
# 'database_file': 'path/to/zephyrTestCase.db',
# 'store': True,
'tty_file': '/dev/ttyACM14',
'board': 'nrf52',
'debugger_snr': '683066667',
'enable_max_logs': True,
'retry': 0,
'bd_addr': '',
'rtt_log': True,
'recovery': False,
'superguard': 15, # minutes,
'no_build': True
}

z['git'] = {
'zephyr': {
'path': '.',
'remote': 'ncs',
'branch': 'master',
'stash_changes': False,
'update_repo': False
},
}


z['iut_config'] = {
"prj.conf": {
"test_cases": {'GAP/ADV/BV-01-C'}
},}

BotProjects.append(zephyr_nrf52)

0 comments on commit 694e280

Please sign in to comment.