diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2020-06-03 07:03:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-03 07:03:55 -0400 |
commit | b63d58f1c877fd1302aba3c82776e9f9492c61fd (patch) | |
tree | 6c7e8fa8b0b5fe303926c08520f696bc9b9fcfb3 /tests | |
parent | 49719a961d6c079004b65458ea8c5e08ada1c44c (diff) |
Add a random offset to the update script when running non-interactively. (#9245)
* Revert "Revert "Introduce a random sleep in the Netdata updater (#9079)" (#9161)"
This reverts commit e92d2ce7a155a33ee6b0acfd928f357251c02c69.
* Add option to updater to disable randomized delay.
Primarily intended for CI, also useful for automated deployment tools
like Ansible.
* Use correct paths in CI.
* Mke variable name match option name.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/lifecycle.bats | 2 | ||||
-rwxr-xr-x | tests/updater_checks.bats | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/lifecycle.bats b/tests/lifecycle.bats index 4d18115bea..728c570e3d 100755 --- a/tests/lifecycle.bats +++ b/tests/lifecycle.bats @@ -50,7 +50,7 @@ setup() { @test "update netdata" { export ENVIRONMENT_FILE="${ENV}" - /etc/cron.daily/netdata-updater + ${INSTALLATION}/netdata/usr/libexec/netdata/netdata-updater.sh --not-running-from-cron ! grep "new_installation" "${ENV}" } diff --git a/tests/updater_checks.bats b/tests/updater_checks.bats index 6444c081cc..930cea990b 100755 --- a/tests/updater_checks.bats +++ b/tests/updater_checks.bats @@ -54,9 +54,8 @@ setup() { @test "update netdata using the new updater" { export ENVIRONMENT_FILE="${ENV}" # Run the updater, with the override so that it uses the local repo we have at hand - # Try to run the installed, if any, otherwise just run the one from the repo export NETDATA_LOCAL_TARBAL_OVERRIDE="${PWD}" - /etc/cron.daily/netdata-updater || ./packaging/installer/netdata-updater.sh + ${INSTALLATION}/netdata/usr/libexec/netdata/netdata-updater.sh --not-running-from-cron ! grep "new_installation" "${ENV}" } |