diff --git a/cmd/package b/cmd/package index b60f492ec..41110352e 100755 --- a/cmd/package +++ b/cmd/package @@ -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 diff --git a/framework/python/src/common/testreport.py b/framework/python/src/common/testreport.py index 9b1eff6ef..eba811dc5 100644 --- a/framework/python/src/common/testreport.py +++ b/framework/python/src/common/testreport.py @@ -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 diff --git a/make/DEBIAN/control b/make/DEBIAN/control index 996f6e9d2..695bde60c 100644 --- a/make/DEBIAN/control +++ b/make/DEBIAN/control @@ -1,5 +1,5 @@ Package: Testrun -Version: 1.2.1-alpha +Version: 1.2.2-alpha Architecture: amd64 Maintainer: Google Homepage: https://github.com/google/testrun diff --git a/modules/test/base/python/src/test_module.py b/modules/test/base/python/src/test_module.py index a81b97caf..f7707ba3a 100644 --- a/modules/test/base/python/src/test_module.py +++ b/modules/test/base/python/src/test_module.py @@ -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): diff --git a/modules/test/protocol/python/src/protocol_modbus.py b/modules/test/protocol/python/src/protocol_modbus.py index 6204a0e41..d9a74c834 100644 --- a/modules/test/protocol/python/src/protocol_modbus.py +++ b/modules/test/protocol/python/src/protocol_modbus.py @@ -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'