From 8d11a049147732923251ba51e6032c99fea4064e Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Sun, 1 Oct 2017 13:50:42 -0500 Subject: [PATCH] Change in to work dir before executing tox We can't execute tox if we're not in the dir. Change-Id: I8b6785a99f8a95b2fd9eaaad5c376a837c81154a --- roles/fetch-tox-output/tasks/main.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/fetch-tox-output/tasks/main.yaml b/roles/fetch-tox-output/tasks/main.yaml index de5278d48..dbcade6b3 100644 --- a/roles/fetch-tox-output/tasks/main.yaml +++ b/roles/fetch-tox-output/tasks/main.yaml @@ -21,6 +21,8 @@ - name: Find all environments command: tox -l + args: + chdir: "{{ zuul_work_dir }}" register: tox_environments when: tox_envlist is not defined or tox_envlist == 'all'