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

Side by Side Diff: scripts/slave/recipes/skia/swarm_trigger.expected/Wrong_downloaded_SKP_VERSION.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 "git", 4 "git",
5 "remote", 5 "remote",
6 "set-url", 6 "set-url",
7 "origin", 7 "origin",
8 "https://skia.googlesource.com/skia.git" 8 "https://skia.googlesource.com/skia.git"
9 ], 9 ],
10 "cwd": "[SLAVE_BUILD]/skia", 10 "cwd": "[SLAVE_BUILD]/skia",
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@", 731 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
732 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", 732 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
733 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", 733 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
734 "@@@STEP_LOG_END@python.inline@@@" 734 "@@@STEP_LOG_END@python.inline@@@"
735 ] 735 ]
736 }, 736 },
737 { 737 {
738 "cmd": [ 738 "cmd": [
739 "python", 739 "python",
740 "-u", 740 "-u",
741 "\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", 741 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
742 "[SLAVE_BUILD]/tmp/SKP_VERSION", 742 "[SLAVE_BUILD]/tmp/SKP_VERSION",
743 "/path/to/tmp/" 743 "/path/to/tmp/"
744 ], 744 ],
745 "name": "Get downloaded SKP_VERSION" 745 "name": "Get downloaded SKP_VERSION"
746 }, 746 },
747 { 747 {
748 "cmd": [ 748 "cmd": [
749 "python", 749 "python",
750 "-u", 750 "-u",
751 "\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", 751 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
752 "[SLAVE_BUILD]/skia/SKP_VERSION", 752 "[SLAVE_BUILD]/skia/SKP_VERSION",
753 "/path/to/tmp/" 753 "/path/to/tmp/"
754 ], 754 ],
755 "name": "Get expected SKP_VERSION" 755 "name": "Get expected SKP_VERSION"
756 }, 756 },
757 { 757 {
758 "cmd": [ 758 "cmd": [
759 "python", 759 "python",
760 "-u", 760 "-u",
761 "\nimport os\nimport sys\nos.remove(sys.argv[1])\n", 761 "\nimport os\nimport sys\nos.remove(sys.argv[1])\n",
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", 837 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
838 "42", 838 "42",
839 "[SLAVE_BUILD]/tmp/SKP_VERSION" 839 "[SLAVE_BUILD]/tmp/SKP_VERSION"
840 ], 840 ],
841 "name": "write SKP_VERSION" 841 "name": "write SKP_VERSION"
842 }, 842 },
843 { 843 {
844 "cmd": [ 844 "cmd": [
845 "python", 845 "python",
846 "-u", 846 "-u",
847 "\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", 847 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
848 "[SLAVE_BUILD]/skia/infra/bots/assets/skimage/VERSION", 848 "[SLAVE_BUILD]/skia/infra/bots/assets/skimage/VERSION",
849 "/path/to/tmp/" 849 "/path/to/tmp/"
850 ], 850 ],
851 "name": "read skimage VERSION" 851 "name": "read skimage VERSION"
852 }, 852 },
853 { 853 {
854 "cmd": [ 854 "cmd": [
855 "python", 855 "python",
856 "-u", 856 "-u",
857 "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os. path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n", 857 "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os. path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n",
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
1418 "@@@STEP_LINK@shard #0 isolated out@blah@@@", 1418 "@@@STEP_LINK@shard #0 isolated out@blah@@@",
1419 "@@@STEP_LINK@view steps on Milo@https://luci-milo.appspot.com/swarming/ta sk/148aa78d7aa0000@@@" 1419 "@@@STEP_LINK@view steps on Milo@https://luci-milo.appspot.com/swarming/ta sk/148aa78d7aa0000@@@"
1420 ] 1420 ]
1421 }, 1421 },
1422 { 1422 {
1423 "name": "$result", 1423 "name": "$result",
1424 "recipe_result": null, 1424 "recipe_result": null,
1425 "status_code": 0 1425 "status_code": 0
1426 } 1426 }
1427 ] 1427 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698