gen_call_robot gzip changes
- Add -f option to gzip call (to force overwrite of existing file)
- Remove gzip option from robot_cmd_fnc(). robot_cmd_fnc will
always ask to have output gzipped.
Change-Id: I8b14fc2430ad02d6ca77a3913becb18e4797a4b8
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/gen_call_robot.py b/lib/gen_call_robot.py
index ddc3517..991ea4c 100755
--- a/lib/gen_call_robot.py
+++ b/lib/gen_call_robot.py
@@ -350,7 +350,7 @@
return
if gzip:
- gc.shell_cmd("gzip " + file_list)
+ gc.shell_cmd("gzip -f " + file_list)
# Update the values in file_list.
file_list = re.sub(" ", ".gz ", file_list) + ".gz"
@@ -379,8 +379,7 @@
def robot_cmd_fnc(robot_cmd_buf,
- robot_jail=os.environ.get('ROBOT_JAIL', ''),
- gzip=1):
+ robot_jail=os.environ.get('ROBOT_JAIL', '')):
r"""
Run the robot command string.
@@ -392,9 +391,6 @@
robot_jail Indicates that this is to run in "robot
jail" meaning without visibility to any
apolloxxx import files, programs, etc.
- gqip This indicates that the log, report and
- output files produced by robot should be
- gzipped to save space.
"""
if not gv.valid_value(robot_cmd_buf):