Skip to content

Commit

Permalink
tests/kola/version/toolbox: check we have the correct toolbox version
Browse files Browse the repository at this point in the history
We want to keep shipping the version of `toolbox` from
https://github.com/coreos/toolbox in RHCOS for the time being. But it
is easy for the RHEL dist-git of `toolbox` to get updated without us
being notified, so let's put a simple check in place to make sure we
are getting the bash script version and not the golang version.
  • Loading branch information
miabbott committed Jan 19, 2022
1 parent ebae3c3 commit 83975c8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/kola/version/toolbox
@@ -0,0 +1,15 @@
#!/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
}

if [ "$(file -b /usr/bin/toolbox)" != "Bourne-Again shell script, ASCII text executable" ]; then
fatal "Error: toolbox is not a shell script as expected"
fi

0 comments on commit 83975c8

Please sign in to comment.