summaryrefslogtreecommitdiffstats
path: root/tools/tryselect/test/test_empty.t
blob: f6dea366c49ba28881d3f9f6e9f3030625d67c31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
  $ . $TESTDIR/setup.sh
  $ cd $topsrcdir

Test empty selector

  $ ./mach try empty --no-push
  Commit message:
  No try selector specified, use "Add New Jobs" to select tasks.
  
  Pushed via `mach try empty`
  Calculated try_task_config.json:
  {
      "env": {
          "TRY_SELECTOR": "empty"
      },
      "tasks": [],
      "version": 1
  }
  
  $ ./mach try empty --no-push --closed-tree
  Commit message:
  No try selector specified, use "Add New Jobs" to select tasks. ON A CLOSED TREE
  
  Pushed via `mach try empty`
  Calculated try_task_config.json:
  {
      "env": {
          "TRY_SELECTOR": "empty"
      },
      "tasks": [],
      "version": 1
  }
  
  $ ./mach try empty --no-push --closed-tree -m "foo {msg} bar"
  Commit message:
  foo No try selector specified, use "Add New Jobs" to select tasks. bar ON A CLOSED TREE
  
  Pushed via `mach try empty`
  Calculated try_task_config.json:
  {
      "env": {
          "TRY_SELECTOR": "empty"
      },
      "tasks": [],
      "version": 1
  }