Skip to content

Commit f33140f

Browse files
micwalshgkeishin
authored andcommitted
process_robot_output_files: Default gzip arg to env var GZIP
Also, misc. style improvements Change-Id: I4e9d757a71dd78b122e03a091e58b32c32375702 Signed-off-by: Michael Walsh <[email protected]>
1 parent 7c6342b commit f33140f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/gen_call_robot.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ def init_robot_out_parms(extra_prefix=""):
3232
3333
This function would typically be called prior to calling
3434
create_robot_cmd_string.
35+
36+
Description of argument(s):
37+
extra_prefix An extra prefix to be appended to the
38+
default prefix for output file names.
3539
"""
3640

3741
gp.dprint_executing()
@@ -293,7 +297,7 @@ def create_robot_cmd_string(robot_file_path, *parms):
293297

294298
def process_robot_output_files(robot_cmd_buf=None,
295299
robot_rc=None,
296-
gzip=1):
300+
gzip=None):
297301
r"""
298302
Process robot output files which can involve several operations:
299303
- If the files are in a temporary location, using SAVE_STATUS_POLICY to
@@ -311,6 +315,7 @@ def process_robot_output_files(robot_cmd_buf=None,
311315

312316
robot_cmd_buf = gm.dft(robot_cmd_buf, gcr_last_robot_cmd_buf)
313317
robot_rc = gm.dft(robot_rc, gcr_last_robot_rc)
318+
gzip = gm.dft(gzip, int(os.environ.get("GZIP_ROBOT", "1")))
314319

315320
if robot_cmd_buf == "":
316321
# This can legitimately occur if this function is called from an

0 commit comments

Comments
 (0)