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 <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2018-11-04 16:12:42 +03:00
parent 218ba6bc9e
commit 7bb272d0b5

View File

@ -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)