Commit 44fefedf authored by Wes Kocher's avatar Wes Kocher
Browse files

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

MozReview-Commit-ID: BtQntIHOo2G

--HG--
extra : rebase_source : b8e6d6a32ea728590bf4aec85c7605a8829d47c1
parent c36e6507
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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"
    ]
  }
  
+3 −0
Original line number Diff line number Diff line
@@ -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
+1 −0
Original line number Diff line number Diff line
@@ -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):