]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/utils/qemurunner: Avoid tracebacks on closed files
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 2 Dec 2018 11:23:17 +0000 (11:23 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 5 Dec 2018 12:34:06 +0000 (12:34 +0000)
commit8e7d756862d2a8d62f3c87497d6d65ddb3c1b962
tree6fae0f5532b6a5a9b53c047403874dad8dcbdff7
parentc29cb75d5ce6b0873a934f4709b0c8824f7164d3
oeqa/utils/qemurunner: Avoid tracebacks on closed files

Reorder the shutdown/teardown to avoid:

  File "/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/meta/lib/oeqa/utils/qemurunner.py", line 224, in launch
    op = self.getOutput(output)
  File "/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/meta/lib/oeqa/utils/qemurunner.py", line 90, in getOutput
    fl = fcntl.fcntl(o, fcntl.F_GETFL)
ValueError: I/O operation on closed file

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/utils/qemurunner.py