Skip to content

Commit

Permalink
Merge pull request coreos#693 from miabbott/toolbox_check
Browse files Browse the repository at this point in the history
tests/kola/version/toolbox: check we have the correct toolbox version
  • Loading branch information
openshift-merge-robot authored Jan 19, 2022
2 parents ebae3c3 + 3b165f3 commit 1e38760
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/kola/version/toolbox
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

# This is RHCOS only, we ship a different version of toolbox in FCOS

# kola: { "exclusive": false }
set -xeuo pipefail

fatal() {
echo "$@" >&2
exit 1
}

# make it a var so we can change when/if we switch to containers/toolbox
url="https://github.com/coreos/toolbox"

if [ "$(rpm -q --qf '%{URL}' toolbox)" != "${url}" ]; then
fatal "Error: toolbox is not a shell script as expected"
fi

0 comments on commit 1e38760

Please sign in to comment.