Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Кудлай Никита Романович P32141
assignment-1-io-library
Commits
7467fd60
Commit
7467fd60
authored
3 years ago
by
Nikita Akatyev
💬
Browse files
Options
Download
Email Patches
Plain Diff
Spit instead of swallowing
parent
7bcc7935
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
test.py
test.py
+3
-0
No files found.
test.py
View file @
7467fd60
...
...
@@ -44,6 +44,8 @@ def compile( fname, text ):
f
.
write
(
text
)
f
.
close
()
subprocess
.
call
(
[
'nasm'
,
'--version'
]
)
if
subprocess
.
call
(
[
'nasm'
,
'-f'
,
'elf64'
,
fname
+
'.asm'
,
'-o'
,
fname
+
'.o'
]
)
==
0
and
subprocess
.
call
(
[
'ld'
,
'-o'
,
fname
,
fname
+
'.o'
]
)
==
0
:
print
' '
,
fname
,
': compiled'
return
True
...
...
@@ -470,6 +472,7 @@ if __name__ == "__main__":
found_error
=
True
except
:
print
'* [ '
,
colored
(
'fail'
,
'red'
),
'] with exception'
,
sys
.
exc_info
()[
0
]
raise
found_error
=
True
if
found_error
:
sys
.
exit
(
'Not all tests have been passed'
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment