]> 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>
Thu, 6 Dec 2018 10:29:39 +0000 (10:29 +0000)
commit48979ffbe25351f92179021a973207a71bbe7a4e
treeae806b29aff5c45bec9ebd744d900cac8c4d37ab
parent6f2bb2c12289422396deb793ae4b4e99cfa88c7b
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

(From OE-Core rev: 8e7d756862d2a8d62f3c87497d6d65ddb3c1b962)

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