Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: scripts/slave/recipe_modules/archive/example.expected/cf_archiving_linux.json

Issue 2402583003: Revert "Fix file.copy recipe_module to not fail if files are already equal." (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 [ 1 [
2 { 2 {
3 "cmd": [ 3 "cmd": [
4 "python", 4 "python",
5 "-u", 5 "-u",
6 "\nimport shutil\nimport sys\n# Apparently, shutil.copy fails if files are binary-equal on *nix OSes.\n# See http://crbug.com/636168#c8.\nif hasattr(shuti l, '_samefile'):\n if shutil._samefile(sys.argv[1], sys.argv[2]):\n sys.exit (0)\nshutil.copy(sys.argv[1], sys.argv[2])\n", 6 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
7 "None/third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer", 7 "None/third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer",
8 "[SLAVE_BUILD]/src/out/Release" 8 "[SLAVE_BUILD]/src/out/Release"
9 ], 9 ],
10 "name": "Copy llvm-symbolizer" 10 "name": "Copy llvm-symbolizer"
11 }, 11 },
12 { 12 {
13 "cmd": [ 13 "cmd": [
14 "python", 14 "python",
15 "-u", 15 "-u",
16 "\nimport shutil\nimport sys\n# Apparently, shutil.copy fails if files are binary-equal on *nix OSes.\n# See http://crbug.com/636168#c8.\nif hasattr(shuti l, '_samefile'):\n if shutil._samefile(sys.argv[1], sys.argv[2]):\n sys.exit (0)\nshutil.copy(sys.argv[1], sys.argv[2])\n", 16 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
17 "None/third_party/llvm-build/Release+Asserts/bin/sancov", 17 "None/third_party/llvm-build/Release+Asserts/bin/sancov",
18 "[SLAVE_BUILD]/src/out/Release" 18 "[SLAVE_BUILD]/src/out/Release"
19 ], 19 ],
20 "name": "Copy sancov" 20 "name": "Copy sancov"
21 }, 21 },
22 { 22 {
23 "cmd": [ 23 "cmd": [
24 "python", 24 "python",
25 "-u", 25 "-u",
26 "\nimport json, os, sys\nif os.path.exists(sys.argv[1]) and os.path.isdir( sys.argv[1]):\n with open(sys.argv[2], 'w') as f:\n json.dump(os.listdir(sys .argv[1]), f)\n", 26 "\nimport json, os, sys\nif os.path.exists(sys.argv[1]) and os.path.isdir( sys.argv[1]):\n with open(sys.argv[2], 'w') as f:\n json.dump(os.listdir(sys .argv[1]), f)\n",
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 "@@@STEP_LOG_LINE@python.inline@os.remove(sys.argv[1])@@@", 93 "@@@STEP_LOG_LINE@python.inline@os.remove(sys.argv[1])@@@",
94 "@@@STEP_LOG_END@python.inline@@@" 94 "@@@STEP_LOG_END@python.inline@@@"
95 ] 95 ]
96 }, 96 },
97 { 97 {
98 "name": "$result", 98 "name": "$result",
99 "recipe_result": null, 99 "recipe_result": null,
100 "status_code": 0 100 "status_code": 0
101 } 101 }
102 ] 102 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698