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

Unified Diff: recipe_modules/file/examples/glob.expected/basic.json

Issue 2973133002: [file] fix glob_paths when NO paths match, add tests. (Closed)
Patch Set: Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « recipe_modules/file/examples/glob.py ('k') | recipe_modules/file/resources/fileutil.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/file/examples/glob.expected/basic.json
diff --git a/recipe_modules/file/examples/glob.expected/basic.json b/recipe_modules/file/examples/glob.expected/basic.json
new file mode 100644
index 0000000000000000000000000000000000000000..c314875e5cdc2a1f3cdccca08b59ff886703f196
--- /dev/null
+++ b/recipe_modules/file/examples/glob.expected/basic.json
@@ -0,0 +1,121 @@
+[
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "copy",
+ "data",
+ "[START_DIR]/thing.pat"
+ ],
+ "infra_step": true,
+ "name": "write thing.pat"
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "copy",
+ "data",
+ "[START_DIR]/other.pat"
+ ],
+ "infra_step": true,
+ "name": "write other.pat"
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "copy",
+ "data",
+ "[START_DIR]/something"
+ ],
+ "infra_step": true,
+ "name": "write something"
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "copy",
+ "data",
+ "[START_DIR]/file"
+ ],
+ "infra_step": true,
+ "name": "write file"
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "glob",
+ "[START_DIR]",
+ "*.pat"
+ ],
+ "infra_step": true,
+ "name": "pat",
+ "stdout": "/path/to/tmp/",
+ "~followup_annotations": [
+ "@@@STEP_LOG_LINE@glob@[START_DIR]/other.pat@@@",
+ "@@@STEP_LOG_LINE@glob@[START_DIR]/thing.pat@@@",
+ "@@@STEP_LOG_END@glob@@@"
+ ]
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "glob",
+ "[START_DIR]",
+ "*.nop"
+ ],
+ "infra_step": true,
+ "name": "noop",
+ "stdout": "/path/to/tmp/",
+ "~followup_annotations": [
+ "@@@STEP_LOG_END@glob@@@"
+ ]
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+ "--json-output",
+ "/path/to/tmp/json",
+ "glob",
+ "[START_DIR]",
+ "*thing*"
+ ],
+ "infra_step": true,
+ "name": "thing",
+ "stdout": "/path/to/tmp/",
+ "~followup_annotations": [
+ "@@@STEP_LOG_LINE@glob@[START_DIR]/something@@@",
+ "@@@STEP_LOG_LINE@glob@[START_DIR]/thing.pat@@@",
+ "@@@STEP_LOG_END@glob@@@"
+ ]
+ },
+ {
+ "name": "$result",
+ "recipe_result": null,
+ "status_code": 0
+ }
+]
« no previous file with comments | « recipe_modules/file/examples/glob.py ('k') | recipe_modules/file/resources/fileutil.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698