diff options
author | Rich Trott <rtrott@gmail.com> | 2015-11-20 10:15:31 -0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2015-11-23 12:21:10 -0800 |
commit | 8bc80386879538de63cd6f2aef288f59324eb004 (patch) | |
tree | 610f472c6aaff2dd75fa95ec84aa0302dd903c76 /tools/test.py | |
parent | 487de196840243bda4b260f8de5aa35b4d48840c (diff) | |
download | android-node-v8-8bc80386879538de63cd6f2aef288f59324eb004.tar.gz android-node-v8-8bc80386879538de63cd6f2aef288f59324eb004.tar.bz2 android-node-v8-8bc80386879538de63cd6f2aef288f59324eb004.zip |
test: retry on smartos if ECONNREFUSED
SmartOS has a bug that causes unexpected ECONNREFUSED errors.
See https://smartos.org/bugview/OS-2767
If ECONNREFUSED on SmartOS, retry the test one time.
Fixes: https://github.com/nodejs/node/issues/3864
Fixes: https://github.com/nodejs/node/issues/2815
PR-URL: https://github.com/nodejs/node/pull/3941
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Diffstat (limited to 'tools/test.py')
-rwxr-xr-x | tools/test.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/test.py b/tools/test.py index 26b70233d5..49db74727a 100755 --- a/tools/test.py +++ b/tools/test.py @@ -138,6 +138,13 @@ class ProgressIndicator(object): try: start = datetime.now() output = case.Run() + # SmartOS has a bug that causes unexpected ECONNREFUSED errors. + # See https://smartos.org/bugview/OS-2767 + # If ECONNREFUSED on SmartOS, retry the test one time. + if (output.UnexpectedOutput() and + sys.platform == 'sunos5' and + 'ECONNREFUSED' in output.output.stderr): + output = case.Run() case.duration = (datetime.now() - start) except IOError, e: return |