Fix expected test output (#464)

Somehow CI did not run on #460
and the UI did not indicate that... weird. So
we had a typo in the text output
that was expected that went missed.
This commit is contained in:
Alon Zakai
2020-04-09 16:19:00 -07:00
committed by GitHub
parent 4dce416efa
commit a952a6fb14

View File

@@ -148,8 +148,8 @@ assert not os.path.exists(LIBC)
# Test the normal tools like node don't re-download on re-install
print('another install must re-download')
checked_call_with_output(emsdk + ' uninstall node-12.9.1-64bit')
checked_call_with_output(emsdk + ' install node-12.9.1-64bit', expected='Downloading:', unexpected='already exist in destination')
checked_call_with_output(emsdk + ' install node-12.9.1-64bit', unexpected='Downloading:', expected='already exist in destination')
checked_call_with_output(emsdk + ' install node-12.9.1-64bit', expected='Downloading:', unexpected='already installed')
checked_call_with_output(emsdk + ' install node-12.9.1-64bit', unexpected='Downloading:', expected='already installed')
print('test tot-upstream')
run_emsdk('install tot-upstream')
@@ -172,8 +172,8 @@ run_emsdk('activate sdk-fastcomp-1.38.31-64bit')
print('test specific release (new, short name)')
run_emsdk('install 1.38.33')
print('another install must re-download')
checked_call_with_output(emsdk + ' install 1.38.33', expected='Downloading:')
print('another install, but no need for re-download')
checked_call_with_output(emsdk + ' install 1.38.33', expected='Skipped', unexpected='Downloading:')
run_emsdk('activate 1.38.33')
assert 'upstream' not in open(os.path.expanduser('~/.emscripten')).read()
assert 'fastcomp' in open(os.path.expanduser('~/.emscripten')).read()