From c57b26e52b1f92d71b310446c68e15b022a6e38e Mon Sep 17 00:00:00 2001 From: Ian McKellar <ianloic@google.com> Date: Thu, 2 May 2019 16:08:11 +0000 Subject: [PATCH] [fx][zsh] complete fx run-test Change-Id: Ie3df76f1b93252a2ac9f7185291ff5eed2c309fe --- scripts/zsh-completion/_fx_run-test | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 scripts/zsh-completion/_fx_run-test diff --git a/scripts/zsh-completion/_fx_run-test b/scripts/zsh-completion/_fx_run-test new file mode 100644 index 00000000000..f3608912d15 --- /dev/null +++ b/scripts/zsh-completion/_fx_run-test @@ -0,0 +1,5 @@ +# if jq is available... +if whence jq > /dev/null; then + # find os=fuchsia tests in tests.json and print their package + compadd $(jq -r 'map(.test | select(.os == "fuchsia") | .location | split("/")[3]) | unique | .[]' ${fuchsia_dir}/${fuchsia_build_dir}/tests.json) +fi -- GitLab