diff --git a/test.py b/test.py index aaaee8a..2011e8a 100755 --- a/test.py +++ b/test.py @@ -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()