summaryrefslogtreecommitdiffhomepage
path: root/test/test-runner/src
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-runner/src')
-rw-r--r--test/test-runner/src/package.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test-runner/src/package.rs b/test/test-runner/src/package.rs
index 8de1f32c3f..5cc0b92dab 100644
--- a/test/test-runner/src/package.rs
+++ b/test/test-runner/src/package.rs
@@ -173,6 +173,13 @@ fn apt_command() -> Command {
// instead.
cmd.args(["-o", "DPkg::Lock::Timeout=60"]);
cmd.arg("-qy");
+ // `apt` may consider installing a development build to be a downgrade from the baseline if the
+ // major version is identical, in which case the ordering is incorrectly based on the git hash
+ // suffix.
+ //
+ // Note that this is only sound if we take precaution to check the installed version after
+ // running this command.
+ cmd.arg("--allow-downgrades");
cmd.env("DEBIAN_FRONTEND", "noninteractive");