Commit 688ac005 authored by Lucas Kanashiro's avatar Lucas Kanashiro

Allow execution of smoke test in non amd64 architectures

parent e27f3769
eval "$(dpkg-architecture --print-set)"
case "$DEB_HOST_ARCH" in
echo "i586"
echo "armv5el"
echo "armv7hl"
# add any more special cases here
......@@ -21,10 +21,12 @@ sed -i 's/obs:5352/localhost:5352/g' /etc/default/obsworker
sed -i 's/obs:5252/localhost:5252/g' /etc/default/obsworker
sed -i 's/INSTANCES="0"/INSTANCES="1"/g' /etc/default/obsworker
# start worker
service obsworker start
# Debian and OBS use different nomenclature for architectures
mkdir "$AUTOPKGTEST_TMP"/data
cat << EOF > "$AUTOPKGTEST_TMP"/data/test_meta_prj_Debian_9
<project name="Debian:9">
......@@ -32,8 +34,8 @@ cat << EOF > "$AUTOPKGTEST_TMP"/data/test_meta_prj_Debian_9
<description>Debian 9 DoD</description>
<person userid="Admin" role="maintainer"/>
<repository name="main">
<download arch="x86_64" url="" repotype="deb"/>
<download arch="$obs_arch" url="" repotype="deb"/>
......@@ -45,7 +47,7 @@ cat << EOF > "$AUTOPKGTEST_TMP"/data/test_meta_prj_test
<person userid="Admin" role="maintainer"/>
<repository name="Debian_9.0">
<path project="Debian:9" repository="main"/>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment