- parse TopologyConfig file in Thread Certification Test Harness
- list multi-vendor device numbers by case
- list needed vendor device numbers for the whole certification testbed
This commit fixes existing issues in address filters.
- Fix misuse of address filter modes
- disabled should be disable
- Whitelist should be whitelist
- Blacklist should be blacklist
- Fix errors in removing macfilter entries
Impact on 1.1 certification:
This commit does not impact 1.1 certification because only
OpenThread_WpanCtl.py is changed. In 1.1 certification, all golden
devices are controlled by OpenThread.py. OpenThread_WpanCtl.py is used
to control OTBR DUT, and mac filter feature is not useful for a
DUT.
Another PDU Controller used to power cycle between tests. Based by
SNMP protocol. To use EATON_PDU_CONTROLLER is needed PySNMP module
(added to requirements.txt). Also extend settings_sample.py by
comments with needed parameters to create EATON_PDU_CONTROLLER.
elem.txt might be null when the required reference devices could not
be met (either due to the quantity or the type) for specific test.
perform() will throw exceptions if elem.text is null since Chrome and
chromedriver 80. If elem is not shown in current case list window,
move_to_element() will not work either.
- RF-shield needed cases 6.3.2, 5.6.7, 9.2.9, 9.2.10 automation both
on CV and IV testbed
- Added DUT2_DEVICE and SHIELD_GOLDEN_DEVICES in settings file which
list the second DUT and golden devices in RF-box. The emulation of
the required shielding/unshielding test environment is achieved by
controlling the programmable RF-switch (example: Agilent 3499B + HP
44476A microwave switch module) via scripts (configure
SHIELD_CONTROLLER_TYPE and SHIELD_CONTROLLER_PARAMS in settings
file) and final impacting the IN/OUT signal of the devices in the
box.
- Added case_need_shield and device_order parameters in RF-shield
needed case scripts for checking if test case needs to use RF-shield
box and its device order on the Test Harness Testbed page.
Wpanctl THCI might return the wrong RLOC address when RLOC16 == 0 due
to incorrect call to .lstrip('0x'). We use .lstrip('0x') to strip
'0x' at the beginning of a hex string, however this is not correct
when the hex string is '0x0', because '0x0'.lstrip('0x') == ''
This commit fixes all incorrect calls to .lstrip('0x'). There are 3
different kinds of fix:
- s.lstrip('0x') replaced by self.__lstrip0x(s) (lstrip_0x is a
correct implementation of stripping '0x' at the beginning of a
string)
- hex(v).rstrip('L').lstrip('0x') replaced by '%x' % v
- hex(v).lstrip('0x').zfill(4) replaced by '%04x' % v
Recent updates to the Thread Group Test Harness have caused 5.2.3,
5.5.2 tests to fail.
This commit:
- adds more delay interval to address the Test Harness' change in
delays
- merge Test Harness' OpenThread THCI change for updateRouterStatus
The reduction in ping delay and joinNetwork delay have caused test
5.5.2 to fail by side affects described in DEV-2008. Even though it is
a Test Harness validation issue rather than an OpenThread THCI issue,
we increase the ping & joinNetwork delay so that we have a more stable
regression environment.
Both 5.2.3 and 5.5.2 pass on Harness 2.0.0 with this commit.
1. add new role support for border router and its 8 cases 7.1.x
2. update cases referring to Test Harness v50.x
3. for version larger than R1.4.0, not trigger saving results
web-operation since it will auto save.
4. use "python3 -m black -l 119 -S" to format harness-automation
directory
5. correct required golden device numbers
This commit fixes a bug where setXpanId might raise exception when
called with xPanId of length 16.
This commit also renames __convertLongToString to __convertLongToHex
to better reflect its functionality and optimizes its implementation.
This commit adds the *_CLOEXEC flags when opening files. This ensures
files are closed when spawning new processes.
* use LOG_DAEMON as syslog facility
* remove setenv() when forkpty
This commit squashes the approved updates, mainly include
1) bug fix or enhancement
- make pollperiod take effect
- fix the issue in finding the address of the specific address
(case-sensitive issue introduced in #3639)
- make `__sendCommand` more robust for possible extra serial output
3) Update along with master code and other minor updates
- the command used to find specific address (#3856)
- the IP6Prefix string len (from 20 to 19)
- correct typos
2) Code Style
- use single quotes for code
- update to use `print ()` and format `%`
- format via with `black` tool locally
`python3 -m black -l 79 -S tools/harness-thci -t py27`
- add travis python check example for THCI with `flake8` tool
notes: require OT code with #3856 (get specific address) and #3862 (`joiner id`)
This commit triggers resetting NCP/RCP on exit, which ensures NCP/RCP
get back to uninitialized state so that they will not respond to 15.4
messages.
Note, host should disable soft reset by passing `--no-reset` for RCP.
Thus OpenThread POSIX app doesn't need to reset RCP when it exits.
This commit contains the following improvements in
`spi-hdlc-adapter`:
- It changes the default syslog log level to `LOG_WARNING`.
- It enhances the `--verbose[=num]` option to allow negative values
to reduce the log level. Note that this change keeps the behavior
backward compatible (it is an add-on).
- It updates the `print_help()` and the `README.md` files to document
new behavior of `--verbose` option.