From: Tomas Krizek Date: Thu, 27 Jun 2019 08:14:21 +0000 (+0200) Subject: distro/tests: support more OBS repos in test-distro.sh X-Git-Tag: v2.9.0~235^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8340d86a442bf8d5b95a670cdc59863c703d2ce5;p=thirdparty%2Fknot-dns.git distro/tests: support more OBS repos in test-distro.sh --- diff --git a/distro/tests/test-distro.sh b/distro/tests/test-distro.sh index e42fa310ea..6728829dc6 100755 --- a/distro/tests/test-distro.sh +++ b/distro/tests/test-distro.sh @@ -1,30 +1,16 @@ #!/bin/bash -x -# ./test-distro.sh {devel|latest} {distro} -# Example usage: ./test-distro.sh devel debian9 +# ./test-distro.sh {obs_repo} {distro} +# Example usage: ./test-distro.sh knot-dns-devel debian9 pkgtestdir="$(dirname ${0})" repofile="$pkgtestdir/repos.yaml" -distro=$2 repo=$1 +distro=$2 # Select repos -case "$repo" in - devel) - echo -e 'repos:\n - knot-dns-devel' > $repofile - ;; - testing) - echo -e 'repos:\n - knot-dns-testing' > $repofile - ;; - latest) - echo -e 'repos:\n - knot-dns-latest' > $repofile - ;; - *) - echo "Unknown repo, choose devel|latest|testing" - exit 1 - ;; -esac +echo -e "repos:\n - $repo" > $repofile pushd "$pkgtestdir/$distro" vagrant destroy -f &>/dev/null