]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
distro/tests: support more OBS repos in test-distro.sh
authorTomas Krizek <tomas.krizek@nic.cz>
Thu, 27 Jun 2019 08:14:21 +0000 (10:14 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Fri, 28 Jun 2019 10:49:23 +0000 (12:49 +0200)
distro/tests/test-distro.sh

index e42fa310eaedb70834ea4f51c6b660604058e022..6728829dc662b91aadfb2c0af50d1ac7dca275d1 100755 (executable)
@@ -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