summaryrefslogtreecommitdiff
path: root/omnibus
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-12-13 00:13:58 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2019-12-13 00:13:58 -0800
commit41f924b185c2a14f34c0ebf25864a89b2291c77a (patch)
treeb190d383d3c4f2b15e396608ea5b3b971d195706 /omnibus
parent9e855c5e91697db393bc28ddeefdc7b5ead49924 (diff)
downloadchef-41f924b185c2a14f34c0ebf25864a89b2291c77a.tar.gz
omnibus tests need to accept the license
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'omnibus')
-rw-r--r--omnibus/omnibus-test.ps13
-rw-r--r--omnibus/omnibus-test.sh3
2 files changed, 6 insertions, 0 deletions
diff --git a/omnibus/omnibus-test.ps1 b/omnibus/omnibus-test.ps1
index 4871ff0ec7..dfa69d74b1 100644
--- a/omnibus/omnibus-test.ps1
+++ b/omnibus/omnibus-test.ps1
@@ -82,6 +82,9 @@ Get-Location
# ffi-yajl must run in c-extension mode for perf, so force it so we don't accidentally fall back to ffi
$Env:FORCE_FFI_YAJL = "ext"
+# accept license
+$Env:CHEF_LICENSE = "accept-no-persist"
+
# some tests need winrm configured
winrm quickconfig -quiet
diff --git a/omnibus/omnibus-test.sh b/omnibus/omnibus-test.sh
index 66114e005c..d5d5959e12 100644
--- a/omnibus/omnibus-test.sh
+++ b/omnibus/omnibus-test.sh
@@ -152,6 +152,9 @@ elif [[ -d /usr/local/etc/sudoers.d ]]; then
sudo chmod 440 "/usr/local/etc/sudoers.d/$(id -un)-preserve_path"
fi
+# accept license
+CHEF_LICENSE=accept-no-persist
+
cd "$chef_gem"
sudo -E bundle install
# NOTE: we have unit tests in chef/chef which ARE NOT unit tests. We need to run them on the actual shipping production artifact on the