Bug 1512146 - Update expected results for some tests using mach try fuzzy. r=ahal
authorMarco Castelluccio <mcastelluccio@mozilla.com>
Tue, 04 Dec 2018 22:54:36 -0500
changeset 508716 b7b76a72997dfab8e086d03de028739ee57f8c3d
parent 508715 92080f90bad8daae6b271d3a7c70634d96871a4f
child 508717 f7895b06b74299a13bba51e3de50c8eaa9729e10
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)
reviewersahal
bugs1512146
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 1512146 - Update expected results for some tests using mach try fuzzy. r=ahal
tools/tryselect/test/test_fuzzy.t
tools/tryselect/test/test_message.t
tools/tryselect/test/test_preset.t
--- a/tools/tryselect/test/test_fuzzy.t
+++ b/tools/tryselect/test/test_fuzzy.t
@@ -9,32 +9,42 @@ Test fuzzy selector
   
   Pushed via `mach try fuzzy`
   Calculated try_task_config.json:
   {
       "tasks": [
           "test/foo-debug",
           "test/foo-opt"
       ],
+      "templates": {
+          "env": {
+              "TRY_SELECTOR": "fuzzy"
+          }
+      },
       "version": 1
   }
   
   $ ./mach try fuzzy $testargs -q "'bar"
   no tasks selected
   $ ./mach try fuzzy $testargs --full -q "'bar"
   Commit message:
   Fuzzy query='bar
   
   Pushed via `mach try fuzzy`
   Calculated try_task_config.json:
   {
       "tasks": [
           "test/bar-debug",
           "test/bar-opt"
       ],
+      "templates": {
+          "env": {
+              "TRY_SELECTOR": "fuzzy"
+          }
+      },
       "version": 1
   }
   
 
 Test multiple selectors
 
   $ ./mach try fuzzy $testargs --full -q "'foo" -q "'bar"
   Commit message:
@@ -44,16 +54,21 @@ Test multiple selectors
   Calculated try_task_config.json:
   {
       "tasks": [
           "test/bar-debug",
           "test/bar-opt",
           "test/foo-debug",
           "test/foo-opt"
       ],
+      "templates": {
+          "env": {
+              "TRY_SELECTOR": "fuzzy"
+          }
+      },
       "version": 1
   }
   
 
 Test templates
 
   $ ./mach try fuzzy --no-push --artifact -q "'foo"
   Commit message:
@@ -64,16 +79,19 @@ Test templates
   {
       "tasks": [
           "test/foo-debug",
           "test/foo-opt"
       ],
       "templates": {
           "artifact": {
               "enabled": "1"
+          },
+          "env": {
+              "TRY_SELECTOR": "fuzzy"
           }
       },
       "version": 1
   }
   
   $ ./mach try fuzzy $testargs --env FOO=1 --env BAR=baz -q "'foo"
   Commit message:
   Fuzzy query='foo
@@ -83,14 +101,15 @@ Test templates
   {
       "tasks": [
           "test/foo-debug",
           "test/foo-opt"
       ],
       "templates": {
           "env": {
               "BAR": "baz",
-              "FOO": "1"
+              "FOO": "1",
+              "TRY_SELECTOR": "fuzzy"
           }
       },
       "version": 1
   }
   
--- a/tools/tryselect/test/test_message.t
+++ b/tools/tryselect/test/test_message.t
@@ -11,30 +11,40 @@ Test custom commit messages with fuzzy s
   
   Pushed via `mach try fuzzy`
   Calculated try_task_config.json:
   {
       "tasks": [
           "test/foo-debug",
           "test/foo-opt"
       ],
+      "templates": {
+          "env": {
+              "TRY_SELECTOR": "fuzzy"
+          }
+      },
       "version": 1
   }
   
   $ ./mach try fuzzy $testargs -q foo -m "Foobar: {msg}"
   Commit message:
   Foobar: Fuzzy query=foo
   
   Pushed via `mach try fuzzy`
   Calculated try_task_config.json:
   {
       "tasks": [
           "test/foo-debug",
           "test/foo-opt"
       ],
+      "templates": {
+          "env": {
+              "TRY_SELECTOR": "fuzzy"
+          }
+      },
       "version": 1
   }
   
   $ unset EDITOR
   $ ./mach try fuzzy $testargs -q foo -m > /dev/null 2>&1
   [2]
 
 
--- a/tools/tryselect/test/test_preset.t
+++ b/tools/tryselect/test/test_preset.t
@@ -71,58 +71,78 @@ Test preset with fuzzy subcommand
   Fuzzy query='baz
   
   Pushed via `mach try fuzzy`
   Calculated try_task_config.json:
   {
       "tasks": [
           "build-baz"
       ],
+      "templates": {
+          "env": {
+              "TRY_SELECTOR": "fuzzy"
+          }
+      },
       "version": 1
   }
   
   $ ./mach try fuzzy $testargs --preset baz
   Commit message:
   Fuzzy query='baz
   
   Pushed via `mach try fuzzy`
   Calculated try_task_config.json:
   {
       "tasks": [
           "build-baz"
       ],
+      "templates": {
+          "env": {
+              "TRY_SELECTOR": "fuzzy"
+          }
+      },
       "version": 1
   }
   
 
   $ ./mach try fuzzy $testargs --preset baz -q "'foo"
   Commit message:
   Fuzzy query='foo&query='baz
   
   Pushed via `mach try fuzzy`
   Calculated try_task_config.json:
   {
       "tasks": [
           "build-baz",
           "test/foo-debug",
           "test/foo-opt"
       ],
+      "templates": {
+          "env": {
+              "TRY_SELECTOR": "fuzzy"
+          }
+      },
       "version": 1
   }
   
   $ ./mach try $testargs --preset baz
   Commit message:
   Fuzzy query='baz
   
   Pushed via `mach try fuzzy`
   Calculated try_task_config.json:
   {
       "tasks": [
           "build-baz"
       ],
+      "templates": {
+          "env": {
+              "TRY_SELECTOR": "fuzzy"
+          }
+      },
       "version": 1
   }
   
   $ ./mach try fuzzy $testargs --list-presets
   baz: 'baz
   $ ./mach try fuzzy $testargs --edit-presets
   [try]
   foo = -b do -p linux -u mochitests -t none --tag foo