test/container: ensure koji plugin paths exist

When using the local plugin, ensure the destination plugin path
exists before copying, otherwise it will fail.
This commit is contained in:
Christian Kellner 2020-11-19 10:50:49 +01:00 committed by Tom Gundersen
parent ba25e0f3d7
commit 8705c0aa68
2 changed files with 2 additions and 0 deletions

View file

@ -7,6 +7,7 @@ if ls /share/rpms/*.rpm 1> /dev/null 2>&1; then
/share/rpms/koji-osbuild-builder-*.rpm
else
echo "Using local plugin"
mkdir -p /usr/lib/koji-builder-plugins/
cp /share/plugins/builder/osbuild.py /usr/lib/koji-builder-plugins/
fi

View file

@ -7,6 +7,7 @@ if ls /share/rpms/*.rpm 1> /dev/null 2>&1; then
/share/rpms/koji-osbuild-hub-*.rpm
else
echo "Using local plugin"
mkdir -p /usr/lib/koji-hub-plugins/
cp /share/plugins/hub/osbuild.py /usr/lib/koji-hub-plugins/
fi