summaryrefslogtreecommitdiffstats
path: root/tools/test-commands.sh
blob: f44c46b046ae2da488e4e008dd599bde9514e27a (plain)
1
2
3
4
5
6
7
8
#!/bin/bash
set -exou pipefail

VAL1=$(jenkins-jobs --version 2>&1) || exit 1
VAL2=$(python -m jenkins_jobs --version 2>&1) || exit 2

# we assure that both calling methods to get the same output
[ "${VAL1}" == "${VAL2}" ] || exit 3