diff options
author | Tim Smith <tsmith@chef.io> | 2019-07-18 10:00:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-18 10:00:35 -0700 |
commit | b89356e80d5b55899ae21caf3c5778bbb55b3eb8 (patch) | |
tree | 03003456f29dd08270d1923321b8ecdd2ec37ced | |
parent | f046ceca7f21ee61d7386e21779a6f60e7bdc49f (diff) | |
parent | e992344cbd22d8e03516b961c7fdae2ecac935b7 (diff) | |
download | chef-b89356e80d5b55899ae21caf3c5778bbb55b3eb8.tar.gz |
Merge pull request #8750 from chef/lcg/inspec-bin-test
test that inspec binstub is in the omnibus artifact
-rw-r--r-- | omnibus/omnibus-test.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/omnibus/omnibus-test.sh b/omnibus/omnibus-test.sh index 95ac30bec4..1f5d33c211 100644 --- a/omnibus/omnibus-test.sh +++ b/omnibus/omnibus-test.sh @@ -93,6 +93,11 @@ if [[ ! -L $USR_BIN_DIR/ohai ]] || [[ $(ls -l $USR_BIN_DIR/ohai | awk '{print$NF exit 1 fi +if [[ ! -L $USR_BIN_DIR/inspec ]] || [[ $(ls -l $USR_BIN_DIR/inspec | awk '{print$NF}') != "$BIN_DIR/inspec" ]]; then + echo "$USR_BIN_DIR/inspec symlink to $BIN_DIR/inspec was not correctly created by the pre-install script!" + exit 1 +fi + # Ensure the calling environment (disapproval look Bundler) does not # infect our Ruby environment created by the `chef-client` cli. for ruby_env_var in _ORIGINAL_GEM_PATH \ |