mirror of
https://github.com/storytold/craft-launcher.git
synced 2026-12-06 05:54:23 -05:00
Exercise preserved installed-format eligibility in deferred regression
This commit is contained in:
1 parent
766fc37a6a
commit
bc8bdd7145
1 file changed
+3
-6
@@ -639,15 +639,15 @@ fn deferred_sweep_restores_installability_without_bypassing_token_or_format_elig
|
||||
let (_temp, shared, paths, platform) = fixture();
|
||||
complete(&shared, &paths, platform, 20);
|
||||
let key = nightly_lookup::key(app(), platform);
|
||||
let detected = if matches!(case, "older copy" | "same copy") {
|
||||
let run = if case == "older copy" { 10 } else { 20 };
|
||||
let detected = if matches!(case, "older copy" | "same copy" | "unsupported format") {
|
||||
let run = if case == "same copy" { 20 } else { 10 };
|
||||
let version = nightly_lookup::tests::verified(run).release().version.clone().unwrap();
|
||||
let path = paths.apps().join(app().id);
|
||||
shared.manifest.lock().unwrap().apps.insert(
|
||||
app().id.into(),
|
||||
crate::manifest::Record {
|
||||
version: version.to_string(),
|
||||
kind: PackageKind::TarGz,
|
||||
kind: if case == "unsupported format" { PackageKind::Flatpak } else { PackageKind::TarGz },
|
||||
path: path.clone(),
|
||||
installed_at: 1,
|
||||
files: Vec::new(),
|
||||
@@ -670,9 +670,6 @@ fn deferred_sweep_restores_installability_without_bypassing_token_or_format_elig
|
||||
"missing token" => {
|
||||
shared.nightly_verified.lock().unwrap().clear();
|
||||
}
|
||||
"unsupported format" => {
|
||||
shared.options.lock().unwrap().kinds = vec![PackageKind::Msi];
|
||||
}
|
||||
"no build" => {
|
||||
shared.nightly_state.lock().unwrap().outcome(&key, crate::now(), &Outcome::NoCompatibleBuild);
|
||||
shared.nightly_verified.lock().unwrap().clear();
|
||||
|
||||
Reference in new issue
Block a user