Index: client/run_isolated.py |
diff --git a/client/run_isolated.py b/client/run_isolated.py |
index 67cb9b2af42ca8858428e16b7e0c95377fa96005..8bbb6d233380d96d1fe035ca500b7e65c96fa877 100755 |
--- a/client/run_isolated.py |
+++ b/client/run_isolated.py |
@@ -367,10 +367,13 @@ def link_outputs_to_outdir(run_dir, out_dir, outputs): |
isolateserver.create_directories(out_dir, outputs) |
for o in outputs: |
try: |
- file_path.link_file( |
- os.path.join(out_dir, o), |
- os.path.join(run_dir, o), |
- file_path.HARDLINK_WITH_FALLBACK) |
+ infile = os.path.join(run_dir, o) |
+ outfile = os.path.join(out_dir, o) |
+ if fs.islink(infile): |
+ # TODO(aludwin): handle directories |
+ fs.copy2(infile, outfile) |
+ else: |
+ file_path.link_file(outfile, infile, file_path.HARDLINK_WITH_FALLBACK) |
except OSError as e: |
logging.info("Couldn't collect output file %s: %s", o, e) |