diff --git a/llvm/utils/lit/lit/cl_arguments.py b/llvm/utils/lit/lit/cl_arguments.py --- a/llvm/utils/lit/lit/cl_arguments.py +++ b/llvm/utils/lit/lit/cl_arguments.py @@ -237,6 +237,10 @@ opts.reports = filter(None, [opts.output, opts.xunit_xml_output, opts.resultdb_output, opts.time_trace_output]) + # Convert path arguments to absolute paths, so they can be referenced + # anywhere. + opts.path = [os.path.abspath(p) for p in opts.path] + return opts