Skip to content

Commit 60c71a4

Browse files
Fix two NameError bugs (errno + fatal).
* Reading errno.ENOENT requires errno. * Replace fatal(…) (which does not exist) with sys.exit(…).
1 parent 143134a commit 60c71a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/submit-benchmark-results

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Utility script for submitting benchmark results to an LNT server.
55
"""
66

77
import datetime
8+
import errno
89
import json
910
import optparse
1011
import subprocess
@@ -31,7 +32,7 @@ def capture_with_result(args, include_stderr=False):
3132
p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=stderr)
3233
except OSError,e:
3334
if e.errno == errno.ENOENT:
34-
fatal('no such file or directory: %r when running %s.' % (
35+
sys.exit('no such file or directory: %r when running %s.' % (
3536
args[0], ' '.join(args)))
3637
raise
3738
out,_ = p.communicate()

0 commit comments

Comments
 (0)