diff options
Diffstat (limited to 'meta/lib/oeqa/selftest/cases')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/sstatetests.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/sstatetests.py b/meta/lib/oeqa/selftest/cases/sstatetests.py index e2f509c3e8..86d6cd7464 100644 --- a/meta/lib/oeqa/selftest/cases/sstatetests.py +++ b/meta/lib/oeqa/selftest/cases/sstatetests.py | |||
@@ -772,15 +772,16 @@ addtask tmptask2 before do_tmptask1 | |||
772 | 772 | ||
773 | def find_siginfo(pn, taskname, sigs=None): | 773 | def find_siginfo(pn, taskname, sigs=None): |
774 | result = None | 774 | result = None |
775 | command_complete = False | ||
775 | tinfoil.set_event_mask(["bb.event.FindSigInfoResult", | 776 | tinfoil.set_event_mask(["bb.event.FindSigInfoResult", |
776 | "bb.command.CommandCompleted"]) | 777 | "bb.command.CommandCompleted"]) |
777 | ret = tinfoil.run_command("findSigInfo", pn, taskname, sigs) | 778 | ret = tinfoil.run_command("findSigInfo", pn, taskname, sigs) |
778 | if ret: | 779 | if ret: |
779 | while True: | 780 | while result is None or not command_complete: |
780 | event = tinfoil.wait_event(1) | 781 | event = tinfoil.wait_event(1) |
781 | if event: | 782 | if event: |
782 | if isinstance(event, bb.command.CommandCompleted): | 783 | if isinstance(event, bb.command.CommandCompleted): |
783 | break | 784 | command_complete = True |
784 | elif isinstance(event, bb.event.FindSigInfoResult): | 785 | elif isinstance(event, bb.event.FindSigInfoResult): |
785 | result = event.result | 786 | result = event.result |
786 | return result | 787 | return result |