google / google/openhtf

UNKNOWN_DUT test record is output when sig-int is sent at start prompt

Open
#791 8 comments 0 reactions 1 assignee Claimed by @Kenadia View on GitHub
discussion documentation feature request
Dominant language
Python
Stars
722
Forks
237
Avg merge
11h 31m
Merged PRs (30d)
4

Description

See the following files output when running all the things and doing sig int at the prompt. Expectation would be to not get a test record output correct?

UNKNOWN_DUT.MyTest.1528518533178.pickle
UNKNOWN_DUT.MyTest.1528518533178.json

~/openhtf/examples$ python all_the_things.py
Enter a DUT ID in order to start the test.
--> ^C
============== test: MyTest outcome: ABORTED ==============

Traceback (most recent call last):
File "all_the_things.py", line 172, in
test.execute(test_start=user_input.prompt_for_test_start())
File "/home/venv/local/lib/python2.7/site-packages/openhtf-1.3.0-py2.7.egg/openhtf/core/test_descriptor.py", line 293, in execute
self._executor.wait()
File "/home/venv/local/lib/python2.7/site-packages/openhtf-1.3.0-py2.7.egg/openhtf/core/test_executor.py", line 109, in wait
self.join(31557600)
File "/usr/lib/python2.7/threading.py", line 951, in join
self.__block.wait(delay)
File "/usr/lib/python2.7/threading.py", line 359, in wait
_sleep(delay)
File "/home/venv/local/lib/python2.7/site-packages/openhtf-1.3.0-py2.7.egg/openhtf/core/test_descriptor.py", line 234, in handle_sig_int
raise KeyboardInterrupt()
KeyboardInterrupt

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.