From a952a6fb14fa7d23fc431769ba33f0eda3d4f0f5 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 9 Apr 2020 16:19:00 -0700 Subject: [PATCH] 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. --- test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()