1 export topsrcdir
=$TESTDIR/..
/..
/..
/
2 export MOZBUILD_STATE_PATH
=$TMP/mozbuild
3 export MACH_TRY_PRESET_PATHS
=$MOZBUILD_STATE_PATH/try_presets.yml
5 # This helps to find fzf when running these tests locally, since normally fzf
6 # would be found via MOZBUILD_STATE_PATH pointing to $HOME/.mozbuild
7 export PATH
="$PATH:$HOME/.mozbuild/fzf/bin"
9 export MACHRC
=$TMP/machrc
15 cmd
="$topsrcdir/mach python -c 'from mach.util import get_state_dir; print(get_state_dir(specific_to_topsrcdir=True))'"
16 # First run local state dir generation so it doesn't affect test output.
17 eval $cmd > /dev
/null
2>&1
18 # Now run it again to get the actual directory.
19 cachedir
=$
(eval $cmd)/cache
/taskgraph
21 # Run `mach try --help` to generate virtualenv.
22 eval "$topsrcdir/mach try --help" > /dev
/null
2>&1
24 cat > $cachedir/target_task_set
<< EOF
28 "label": "test/foo-opt",
36 "label": "test/foo-debug",
53 cat > $cachedir/full_task_set
<< EOF
57 "label": "test/foo-opt",
65 "label": "test/foo-debug",
73 "label": "test/bar-opt",
81 "label": "test/bar-debug",
98 # set mtime to the future so we don't re-generate tasks
99 find $cachedir -type f
-exec touch -d "next day" {} +
101 export testargs
="--no-push --no-artifact"