Bug 1546757 - Output statedir in code snippet for testing taskgraph watchman trigger. r=ahal
authorMatthew Noorenberghe <mozilla@noorenberghe.ca>
Fri, 03 May 2019 18:29:57 +0000
changeset 531374 0d9d2bb7e7b8b0dec603f7b52f55f53b1554e8aa
parent 531363 eb5b01e0b309d50231f2412721353b1183aff117
child 531375 be116c1dfc9ca8d970ab9eb8e578c2abbe3dd9f1
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal
bugs1546757
milestone68.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 1546757 - Output statedir in code snippet for testing taskgraph watchman trigger. r=ahal Otherwise `statedir` is always "" Differential Revision: https://phabricator.services.mozilla.com/D29826
tools/tryselect/docs/tasks.rst
--- a/tools/tryselect/docs/tasks.rst
+++ b/tools/tryselect/docs/tasks.rst
@@ -53,17 +53,17 @@ skip the wait the next time you run ``ma
 
     Watchman triggers are persistent and don't need to be added more than once.
     See `Managing Triggers`_ for how to remove a trigger.
 
 You can test that everything is working by running these commands:
 
 .. code-block:: shell
 
-    $ statedir=`mach python -c "from mozboot.util import get_state_dir; get_state_dir(srcdir=True)"`
+    $ statedir=`mach python -c "from mozboot.util import get_state_dir; print(get_state_dir(srcdir=True))"`
     $ rm -rf $statedir/cache/taskgraph
     $ touch taskcluster/mach_commands.py
     # wait a minute for generation to trigger and finish
     $ ls $statedir/cache/taskgraph
 
 If the ``target_task_set`` file exists, you are good to go. If not you can look at the ``watchman``
 log to see if there were any errors. This typically lives somewhere like
 ``/usr/local/var/run/watchman/<user>-state/log``. In this case please file a bug under ``Firefox