summaryrefslogtreecommitdiff
path: root/tests/test-summaries.sh
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2020-11-19 18:26:08 +0100
committerAlexander Larsson <alexander.larsson@gmail.com>2020-11-20 09:27:17 +0100
commit07f36b2e9081d31378fdac097feb56835b97bb1e (patch)
tree16604fbf4ae50d63c03b00db18930831c851b098 /tests/test-summaries.sh
parenta43c6178702c07adb612fb5deb942b83aacad8ee (diff)
downloadflatpak-07f36b2e9081d31378fdac097feb56835b97bb1e.tar.gz
Fix test-summaries on non-x86-64
Diffstat (limited to 'tests/test-summaries.sh')
-rwxr-xr-xtests/test-summaries.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/test-summaries.sh b/tests/test-summaries.sh
index 0d102790..8671f090 100755
--- a/tests/test-summaries.sh
+++ b/tests/test-summaries.sh
@@ -71,7 +71,7 @@ EOF
cp $(dirname $0)/org.test.Hello.png ${DIR}/files/share/app-info/icons/flatpak/64x64/${APP_ID}.png
$FLATPAK build-finish --command=hello.sh ${DIR} &> /dev/null
- $FLATPAK build-export ${GPGARGS} --arch=$APPARCH --disable-sandbox ${REPO} ${DIR} &> /dev/null
+ $FLATPAK build-export --no-update-summary ${GPGARGS} --arch=$APPARCH --disable-sandbox ${REPO} ${DIR} &> /dev/null
rm -rf ${DIR}
}
@@ -144,7 +144,7 @@ fi
# Set up some arches, including the current one
declare -A arches
-for A in aarch64 arm $($FLATPAK --supported-arches); do
+for A in x86_64 aarch64 arm $($FLATPAK --supported-arches); do
arches[$A]=1
done
ARCHES=${!arches[@]}
@@ -160,6 +160,8 @@ for A in $ARCHES; do
make_app org.app.App$I $A repos/test
done
+ update_repo
+
# Make sure we have no superfluous summary files
verify_subsummaries repos/test
done
@@ -171,10 +173,14 @@ ok subsummary update generations
ACTIVE_SUBSET=$(active_subset repos/test)
ACTIVE_SUBSET_OTHER=$(active_subset_for_arch repos/test $OTHER_ARCH)
+# Ensure we have no initial cache
+rm -rf $FL_CACHE_DIR/summaries/*
+
assert_not_has_file $FL_CACHE_DIR/summaries/test-repo-${ACTIVE_SUBSET}.sub
assert_not_has_file $FL_CACHE_DIR/summaries/test-repo-${ACTIVE_SUBSET_OTHER}.sub
httpd_clear_log
+# Prime cache for default arch
$FLATPAK $U remote-ls test-repo > /dev/null
assert_has_file $FL_CACHE_DIR/summaries/test-repo-${ARCH}-${ACTIVE_SUBSET}.sub