Skip to content

Conversation

@rtakacs
Copy link
Contributor

@rtakacs rtakacs commented Jan 9, 2017

Currently, if you don't have valgrind and you would like to run valgrind test, an unhandled exception happens:

Traceback (most recent call last):
File "tools/build.py", line 809, in
if not run_checktest(option):
File "tools/build.py", line 736, in run_checktest
path.CHECKTEST_PATH] + build_args)
File "/home/rtakacs/iotjs/tools/common_py/system/executor.py", line 46, in run_cmd
return subprocess.call([cmd] + args)
File "/usr/lib/python2.7/subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

The fix will catch the exception and handle it.

IoT.js-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.u-szeged@partner.samsung.com
@LaszloLango LaszloLango added the bug label Jan 9, 2017
Copy link
Contributor

@LaszloLango LaszloLango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@LaszloLango
Copy link
Contributor

@rtakacs, please investigate the travis failure.

@rtakacs rtakacs changed the title Add exception handling for Python's 'submodule' methods Add exception handling for Python's 'subprocess' methods Jan 9, 2017
Copy link
Contributor

@glistening glistening left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yichoi yichoi merged commit 7c40490 into jerryscript-project:master Jan 10, 2017
@rtakacs rtakacs deleted the valgrind_exception branch January 10, 2017 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants