[XS] Change in pysim[master]: pySim-shell_test/utils: treat cmd2 error "not a recognized command......
dexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/38629?usp=email ) Change subject: pySim-shell_test/utils: treat cmd2 error "not a recognized command... as exception ...................................................................... pySim-shell_test/utils: treat cmd2 error "not a recognized command... as exception When a pySim-shell command is not recognized, cmd2 prints "xyz is not a recognized command, alias, or macro." This string is a normal print out and not an exception, but during tests, it may point out a severe problem and therefore it should be tread like an exception. Related: OS#6367 Change-Id: I17be6af1547b31170622e17b9cfb9c492597670d --- M tests/pySim-shell_test/utils.py 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/29/38629/1 diff --git a/tests/pySim-shell_test/utils.py b/tests/pySim-shell_test/utils.py index 8dbeebb..9be4acd 100644 --- a/tests/pySim-shell_test/utils.py +++ b/tests/pySim-shell_test/utils.py @@ -285,7 +285,7 @@ raise RuntimeError("pySim-shell exits with error code %u" % py_sim_shell_rc) # Check log for exceptions - exception_regex_compiled = re.compile('.*EXCEPTION.*') + exception_regex_compiled = re.compile('.*EXCEPTION.*|.*is not a recognized command, alias, or macro.*') exceptions_strings = re.findall(exception_regex_compiled, logfile_content) if exceptions_strings != []: print("The following exceptions occurred:") -- To view, visit https://gerrit.osmocom.org/c/pysim/+/38629?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: pysim Gerrit-Branch: master Gerrit-Change-Id: I17be6af1547b31170622e17b9cfb9c492597670d Gerrit-Change-Number: 38629 Gerrit-PatchSet: 1 Gerrit-Owner: dexter <pmaier@sysmocom.de>
participants (1)
-
dexter