Bug 1512082 - Add TRY_SELECTOR env to templates expected value. r=me
authorMarco Castelluccio <mcastelluccio@mozilla.com>
Tue, 04 Dec 2018 17:42:41 -0500
changeset 508619 84a17995db6f2ff316d14c65b0cf8743425c2173
parent 508618 8860aa6f15ed24ca1f1ae58a6876eb8e7bc6d061
child 508620 e4e9bf768be8ed3da736584a2b2ca7d178d026ad
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1512082
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1512082 - Add TRY_SELECTOR env to templates expected value. r=me
tools/tryselect/test/test_again.py
--- a/tools/tryselect/test/test_again.py
+++ b/tools/tryselect/test/test_again.py
@@ -34,17 +34,20 @@ def test_try_again(monkeypatch):
 
     args, kwargs = again.run_try_again()
 
     assert args[0] == 'again'
     assert args[1] == 'Fuzzy message'
 
     try_task_config = kwargs.pop('try_task_config')
     assert sorted(try_task_config.get('tasks')) == sorted(['foo', 'bar'])
-    assert try_task_config.get('templates') == {'artifact': True}
+    assert try_task_config.get('templates') == {
+        'artifact': True,
+        'env': {'TRY_SELECTOR': 'fuzzy'},
+    }
 
     with open(push.history_path, 'r') as fh:
         assert len(fh.readlines()) == 1
 
 
 def test_no_push_does_not_generate_history(tmpdir):
     assert not os.path.isfile(push.history_path)