Fix assignment bug.
@@ -872,7 +872,7 @@ class RunExecutor(containerexecutor.ContainerExecutor):
run_environment = self._setup_environment(environments)
outputFile = self._setup_output_file(output_filename, args, write_header=write_header)
if error_filename is None:
- errorFile = output_filename
+ errorFile = outputFile
else:
errorFile = self._setup_output_file(error_filename, args, write_header=write_header)
