Guard distro tests for pre oss in distribution filesnames (#45478)
Before #45064, the bats tests skipped the upgrade tests when the random upgrade version is before 6.3.0. This commit restores that behavior. closes #45476
This commit is contained in:
parent
1aed388a24
commit
488673f636
|
@ -182,8 +182,12 @@ public class DistroTestPlugin implements Plugin<Project> {
|
|||
try {
|
||||
Files.writeString(archivesPath.resolve("version"), VersionProperties.getElasticsearch());
|
||||
Files.writeString(archivesPath.resolve("upgrade_from_version"), upgradeFromVersion);
|
||||
Path upgradeMarkerPath = archivesPath.resolve("upgrade_is_oss");
|
||||
project.delete(upgradeMarkerPath);
|
||||
// this is always true, but bats tests rely on it. It is just temporary until bats is removed.
|
||||
Files.writeString(archivesPath.resolve("upgrade_is_oss"), "");
|
||||
if (upgradeVersion.onOrAfter("6.3.0")) {
|
||||
Files.writeString(upgradeMarkerPath, "");
|
||||
}
|
||||
} catch (IOException e) {
|
||||
throw new UncheckedIOException(e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue