From: nasm-bot f. C. G. <gor...@gm...> - 2018-11-12 07:00:51
|
Commit-ID: 7bb272d0b52e647c9df22d0420fb134eb2d50be1 Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=7bb272d0b52e647c9df22d0420fb134eb2d50be1 Author: Cyrill Gorcunov <gor...@gm...> AuthorDate: Sun, 4 Nov 2018 16:12:42 +0300 Committer: Cyrill Gorcunov <gor...@gm...> CommitDate: Sun, 11 Nov 2018 21:43:45 +0300 test: nasm-t -- Rework data read procedure Actually it is still blockable, just tune it the way to make riprel pass. Need to redesign for handling big slabs of data. Signed-off-by: Cyrill Gorcunov <gor...@gm...> --- travis/nasm-t.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/travis/nasm-t.py b/travis/nasm-t.py index 9ad4aa1..2a30733 100755 --- a/travis/nasm-t.py +++ b/travis/nasm-t.py @@ -283,13 +283,15 @@ def exec_nasm(desc): if pnasm == None: test_fail(desc['_test-name'], "Unable to execute test") return None - wait_rc = pnasm.wait(); - stdout = pnasm.stdout.read().decode("utf-8").strip("\n") - stderr = pnasm.stderr.read().decode("utf-8").strip("\n") + stderr = pnasm.stderr.read(1048576).decode("utf-8").strip("\n") + stdout = pnasm.stdout.read(1048576).decode("utf-8").strip("\n") + pnasm.stdout.close() pnasm.stderr.close() + wait_rc = pnasm.wait(); + if desc['_wait'] != wait_rc: if stdout != "": show_std("stdout", stdout) |