Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion bits/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ def vm_test(f, time=100000):
def nasm_test(nasm, ram, test, time=1000):
name = getName(nasm)
hack = name + ".hack"
nasm_to_hack(nasm, hack)
path_atual = os.getcwd()
if path_atual[-8:] == '/sw/nasm':

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eu não gostei da solução, pq ela continua sendo especifica. Não teria outro jeito? Eu acho que temos que mexer no pytest e não aqui.

nasm_to_hack(nasm, hack)
else:
nasm_to_hack(f'sw/nasm/{nasm}', hack)
rom = rom_init_from_hack(hack)

run = proc_run(name, rom, ram, time)
Expand Down