Skip to content

Commit a3e6ac1

Browse files
committed
[lldb/test] Fix TestSaveCrashlog.py following changes in eef5ead
This patch fixes TestSaveCrashlog.py failure introduces by eef5ead, which restricts the number of positional argument for the output file to 1. I expected to get the output file but `argparse` puts the object in a list (even by constrained to a singled positional argument). Signed-off-by: Med Ismail Bennani <[email protected]>
1 parent 4ab4e40 commit a3e6ac1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/examples/python/crashlog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ def save_crashlog(debugger, command, exe_ctx, result, dict):
12741274
return
12751275
target = exe_ctx.target
12761276
if target:
1277-
out_file = options.output
1277+
out_file = options.output[0]
12781278
identifier = target.executable.basename
12791279
process = exe_ctx.process
12801280
if process:

0 commit comments

Comments
 (0)