92f28a591e
Enable us to do `python -m jenkins_jobs ...` which avoids the need to install executable in user path. Tests cli execution on each supported python version. Uses default encoding workaround only on python2, where is needed. Change-Id: I4cd79fd51a8309d532e0e76723ecfbbda3e1ca6f Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
9 lines
233 B
Bash
Executable File
9 lines
233 B
Bash
Executable File
#!/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
|