Bug 1391123 - Add a newline to the end of try_task_config.json r=gps

MozReview-Commit-ID: BtQntIHOo2G

--HG--
extra : rebase_source : b8e6d6a32ea728590bf4aec85c7605a8829d47c1
This commit is contained in:
Wes Kocher 2017-09-15 19:02:13 -07:00
parent c36e650732
commit 44fefedf8c
3 changed files with 8 additions and 0 deletions

View File

@ -11,6 +11,7 @@ Test fuzzy selector
"test/foo-opt"
]
}
$ ./mach try fuzzy $testargs -q "'bar"
no tasks selected
$ ./mach try fuzzy $testargs --full -q "'bar"
@ -22,6 +23,7 @@ Test fuzzy selector
]
}
Test templates
$ ./mach try fuzzy --no-push --artifact -q "'foo"
@ -37,6 +39,7 @@ Test templates
"test/foo-opt"
]
}
$ ./mach try fuzzy $testargs --env FOO=1 --env BAR=baz -q "'foo"
Calculated try selector:
{
@ -51,3 +54,4 @@ Test templates
"test/foo-opt"
]
}

View File

@ -42,6 +42,7 @@ Test preset with fuzzy subcommand
"build-baz"
]
}
$ ./mach try fuzzy $testargs --preset baz
Calculated try selector:
{
@ -49,6 +50,7 @@ Test preset with fuzzy subcommand
"build-baz"
]
}
$ ./mach try $testargs --preset baz
Calculated try selector:
{
@ -56,5 +58,6 @@ Test preset with fuzzy subcommand
"build-baz"
]
}
$ ./mach try fuzzy $testargs --list-presets
baz: 'baz

View File

@ -86,6 +86,7 @@ class VCSHelper(object):
try_task_config['templates'] = templates
json.dump(try_task_config, fh, indent=2, separators=(',', ':'))
fh.write('\n')
return config
def check_working_directory(self, push=True):