Skip to content
Snippets Groups Projects
Commit 5b12b7a1 authored by Roger Meier's avatar Roger Meier Committed by Tom Rini
Browse files

tools/genboardscfg.py: no exception if columns undetectable


The existing terminalsize detection raised an exception on build
server. Just removes the exception. This also deactivates the
progress indicator.

Remove a trainling whitespace.

Signed-off-by: default avatarRoger Meier <roger@bufferoverflow.ch>
CC: Masahiro Yamada <yamada.m@jp.panasonic.com>
CC: Tom Rini <trini@ti.com>
parent ca418dd7
No related branches found
No related tags found
No related merge requests found
...@@ -58,8 +58,6 @@ def get_terminal_columns(): ...@@ -58,8 +58,6 @@ def get_terminal_columns():
try: try:
ret = fcntl.ioctl(sys.stdout.fileno(), termios.TIOCGWINSZ, arg) ret = fcntl.ioctl(sys.stdout.fileno(), termios.TIOCGWINSZ, arg)
except IOError as exception: except IOError as exception:
if exception.errno != errno.ENOTTY:
raise
# If 'Inappropriate ioctl for device' error occurs, # If 'Inappropriate ioctl for device' error occurs,
# stdout is probably redirected. Return 0. # stdout is probably redirected. Return 0.
return 0 return 0
...@@ -402,7 +400,7 @@ def __gen_boards_cfg(jobs): ...@@ -402,7 +400,7 @@ def __gen_boards_cfg(jobs):
jobs: The number of jobs to run simultaneously jobs: The number of jobs to run simultaneously
Note: Note:
The incomplete boards.cfg is left over when an error (including The incomplete boards.cfg is left over when an error (including
the termination by the keyboard interrupt) occurs on the halfway. the termination by the keyboard interrupt) occurs on the halfway.
""" """
check_top_directory() check_top_directory()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment