aboutsummaryrefslogtreecommitdiffstats
path: root/travis/nasm-t.py
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2018-11-04 16:12:42 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2018-11-11 21:43:45 +0300
commit7bb272d0b52e647c9df22d0420fb134eb2d50be1 (patch)
treecd10c4abfd83c4fcb8966902e8025e2294a33507 /travis/nasm-t.py
parent218ba6bc9e16bff9ed9d84884c4f390c8ff731c9 (diff)
downloadnasm-7bb272d0b52e647c9df22d0420fb134eb2d50be1.tar.gz
nasm-7bb272d0b52e647c9df22d0420fb134eb2d50be1.tar.xz
nasm-7bb272d0b52e647c9df22d0420fb134eb2d50be1.zip
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>
Diffstat (limited to 'travis/nasm-t.py')
-rwxr-xr-xtravis/nasm-t.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/travis/nasm-t.py b/travis/nasm-t.py
index 9ad4aa18..2a30733b 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)