From 8b9747a997fec4f96cb5dca87533c7e72e47740d Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Sun, 6 Mar 2016 14:44:39 +0000 Subject: [PATCH] run in series by dir --- urchin | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/urchin b/urchin index 0170ca1..f044e59 100755 --- a/urchin +++ b/urchin @@ -182,6 +182,12 @@ recurse() { if [ -d "${potential_test}" ]; then ( cd -- "${potential_test}" + if test -f .urchin_dir && grep series .urchin_dir > /dev/null; then + run_in_series_dir=true + else + run_in_series_dir=false + fi + if test -f setup_dir; then . ./setup_dir; fi for test in *; do @@ -202,7 +208,7 @@ recurse() { exit "${exit_code}" ) & - if "${run_in_series}"; then + if "${run_in_series}" || "${run_in_series_dir}"; then if wait "${!}"; then exit_code=0; else exit_code="${?}"; fi if "${exit_on_not_ok}" && test "${exit_code}" -ne 0; then if test -f teardown_dir; then . ./teardown_dir; fi