From: Miroslav Lichvar Date: Thu, 25 Apr 2019 15:24:37 +0000 (+0200) Subject: test: allow TEST_DIR and CHRONYC_WRAPPER to be set for system tests X-Git-Tag: 3.5-pre1~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b52bba7b971f6016b1ec7ab6c42fe2c070ebd95;p=thirdparty%2Fchrony.git test: allow TEST_DIR and CHRONYC_WRAPPER to be set for system tests --- diff --git a/test/system/test.common b/test/system/test.common index 6a2f6971..d83d9b64 100644 --- a/test/system/test.common +++ b/test/system/test.common @@ -15,7 +15,7 @@ export LC_ALL=C export PATH=${CHRONY_PATH:-../..}:$PATH -export TEST_DIR=$(pwd)/tmp +export TEST_DIR=${TEST_DIR:-$(pwd)/tmp} test_start() { check_chronyd_features NTP CMDMON || test_skip "NTP/CMDMON support disabled" @@ -304,7 +304,8 @@ check_chronyd_files() { run_chronyc() { test_message 1 0 "running chronyc $*" - "$chronyc" -h "$(get_cmdsocket)" -n -m "$@" > "$TEST_DIR/chronyc.out" && test_ok || test_error + $CHRONYC_WRAPPER "$chronyc" -h "$(get_cmdsocket)" -n -m "$@" > "$TEST_DIR/chronyc.out" && \ + test_ok || test_error } # Compare chronyc output with specified pattern