From e225e00cb0c23d1fc7c2f5011279f22dc2c110ee Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Wed, 15 Nov 2017 10:14:56 +0100 Subject: [PATCH] Bug 1417280 - Use shutil.move to move grcov output file instead of os.rename. r=me os.rename doesn't work if dst and src are on different filesystems. --HG-- extra : histedit_source : 6396f787cdbfbd085fac60fb7d520aaaddacff67 --- testing/mozharness/mozharness/mozilla/testing/codecoverage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/mozharness/mozharness/mozilla/testing/codecoverage.py b/testing/mozharness/mozharness/mozilla/testing/codecoverage.py index 4e7e0b6c3230..82f01148a5ca 100644 --- a/testing/mozharness/mozharness/mozilla/testing/codecoverage.py +++ b/testing/mozharness/mozharness/mozilla/testing/codecoverage.py @@ -192,7 +192,7 @@ class CodeCoverageMixin(object): return_type='files' ) output_file_name = 'grcov_lcov_output.info' - os.rename(grcov_output, os.path.join(self.grcov_dir, output_file_name)) + shutil.move(grcov_output, os.path.join(self.grcov_dir, output_file_name)) # Zip the grcov output and upload it. self.run_command(