mirror of
https://github.com/raspberrypi/rpi-eeprom.git
synced 2026-01-20 21:13:36 +08:00
rpi-eeprom-config: Increase default timeouts
Increase the delays to compensate for an (unlikely) retry loop if flashrom reports an error.
This commit is contained in:
@@ -111,7 +111,7 @@ def exit_error(msg):
|
|||||||
sys.stderr.write("ERROR: %s\n" % msg)
|
sys.stderr.write("ERROR: %s\n" % msg)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
def shell_cmd(args, timeout=5, echo=False):
|
def shell_cmd(args, timeout=10, echo=False):
|
||||||
"""
|
"""
|
||||||
Executes a shell command waits for completion returning STDOUT. If an
|
Executes a shell command waits for completion returning STDOUT. If an
|
||||||
error occurs then exit and output the subprocess stdout, stderr messages
|
error occurs then exit and output the subprocess stdout, stderr messages
|
||||||
@@ -180,7 +180,7 @@ def apply_update(config, eeprom=None, config_src=None):
|
|||||||
|
|
||||||
# If flashrom is used then the command will not return until the EEPROM
|
# If flashrom is used then the command will not return until the EEPROM
|
||||||
# has been updated so use a larger timeout.
|
# has been updated so use a larger timeout.
|
||||||
shell_cmd(args, timeout=60, echo=True)
|
shell_cmd(args, timeout=180, echo=True)
|
||||||
|
|
||||||
def edit_config(eeprom=None):
|
def edit_config(eeprom=None):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user