Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/package
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Creates a package for Testrun

MAKE_SRC_DIR=make
TESTRUN_VER="1-2-1-alpha"
TESTRUN_VER="1-2-2-alpha"

# Delete existing make files
rm -rf $MAKE_SRC_DIR/usr
Expand Down
2 changes: 1 addition & 1 deletion framework/python/src/common/testreport.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __init__(self,
self._report_url = ''
self._cur_page = 0
# Placeholder until available in json report
self._version = 'v1.2.1-alpha'
self._version = 'v1.2.2-alpha'

def add_module_reports(self, module_reports):
self._module_reports = module_reports
Expand Down
2 changes: 1 addition & 1 deletion make/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: Testrun
Version: 1.2.1-alpha
Version: 1.2.2-alpha
Architecture: amd64
Maintainer: Google <boddey@google.com>
Homepage: https://github.com/google/testrun
Expand Down
3 changes: 3 additions & 0 deletions modules/test/base/python/src/test_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ def run_tests(self):
# Result may be a string, e.g error
elif result[0] == 'Error':
test['result'] = result[0]
else:
LOGGER.error(f'Unknown result detected: {result[0]}')
test['result'] = 'Error'

# Check that description is a string
if isinstance(result[1], str):
Expand Down
3 changes: 2 additions & 1 deletion modules/test/protocol/python/src/protocol_modbus.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ def validate_device(self):

# Since we can't know what data types the device supports
# we'll pass if any of the supported data types are succesfully read
compliant = holding_reg or input_reg or coils or discrete_inputs
compliant = (holding_reg is not None or input_reg is not None
or coils is not None or discrete_inputs is not None)
else:
compliant = False
details = 'Failed to establish Modbus connection to device'
Expand Down