| Index: tools/utils.py
|
| diff --git a/tools/utils.py b/tools/utils.py
|
| index a6e7f5181c9ab850ab2433461307519d18095d71..efcb886bfc5935b28d2e2b3e5945730055732d7f 100644
|
| --- a/tools/utils.py
|
| +++ b/tools/utils.py
|
| @@ -634,8 +634,9 @@ def CheckedInSdkCheckExecutable():
|
| canary_script = os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
| 'canary.dart')
|
| try:
|
| - if 42 == subprocess.call([executable, canary_script]):
|
| - return True
|
| + with open(os.devnull, 'wb') as silent_sink:
|
| + if 0 == subprocess.call([executable, canary_script], stdout=silent_sink):
|
| + return True
|
| except OSError as e:
|
| pass
|
| return False
|
|
|