Change-Id: Ibb3b6d3b6069dae522a00273dd5b2f7990c095f3
Signed-off-by: Kienan Stewart <kstewart@effiicios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
LTTNG_TEST_TEARDOWN_TIMEOUT=60
fi
+# Some tests use recent bash syntax, e.g. `array_var[-1]` which was introduced
+# in version 4.2. Bailout with a clear error if the bash version isn't supported.
+if [[ "${BASH_VERSINFO[0]}" -lt "4" ]] || [[ "${BASH_VERSINFO[0]}" == "4" && "${BASH_VERSINFO[1]}" -lt "2" ]]; then
+ BAIL_OUT "Bash version '${BASH_VERSION}' is not supported by the test suite"
+fi
+
# Enable job monitor mode.
# Here we are mostly interested in the following from the monitor mode:
# All processes run in a separate process group.