@@ -11,10 +11,11 @@ use Mojo::Base 'containers::basetest';
1111use testapi;
1212use serial_terminal qw( select_serial_terminal) ;
1313use version_utils;
14+ use version;
1415use Utils::Architectures;
1516use containers::bats;
1617
17- my $buildah_version = " " ;
18+ my $version = " " ;
1819
1920sub run_tests {
2021 my %params = @_ ;
@@ -37,16 +38,16 @@ sub run_tests {
3738 my @xfails = ();
3839 push @xfails , (
3940 " add.bats::add https retry ca"
40- ) if (is_sle( " >=16 " ));
41+ ) if (version -> parse(numeric_version( $version )) <= version -> parse( " 1.39.5 " ));
4142 push @xfails , (
4243 " bud.bats::bud with --cgroup-parent" ,
43- ) if (is_sle && !$rootless );
44+ ) if (version -> parse(numeric_version( $version )) <= version -> parse( " 1.39.5 " ) && !$rootless );
4445 push @xfails , (
4546 " bud.bats::bud-git-context" ,
4647 " bud.bats::bud-git-context-subdirectory" ,
4748 " bud.bats::bud using gitrepo and branch" ,
4849 " run.bats::Check if containers run with correct open files/processes limits" ,
49- ) if (is_sle( " <16 " ) && !$rootless );
50+ ) if (version -> parse(numeric_version( $version )) < version -> parse( " 1.39.5 " ) && !$rootless );
5051 push @xfails , (
5152 " bud.bats::bud-multiple-platform-no-partial-manifest-list" ,
5253 ) if (is_sle(" <15-SP6" ));
@@ -97,7 +98,7 @@ sub test_conformance {
9798 run_command " gotestsum --junitfile conformance.xml --format standard-verbose -- ./tests/conformance/... &> conformance.txt" , no_assert => 1, timeout => 1200;
9899 upload_logs " conformance.txt" ;
99100 die " Testsuite failed" if script_run(" test -s conformance.xml" );
100- patch_junit " buildah" , $buildah_version , " conformance.xml" ;
101+ patch_junit " buildah" , $version , " conformance.xml" ;
101102 parse_extra_log(XUnit => " conformance.xml" );
102103}
103104
@@ -123,8 +124,8 @@ sub run {
123124 record_info(" buildah rootless" , script_output(" buildah info" ));
124125
125126 # Download buildah sources
126- $buildah_version = script_output " buildah --version | awk '{ print \$ 3 }'" ;
127- patch_sources " buildah" , " v$buildah_version " , " tests" ;
127+ $version = script_output " buildah --version | awk '{ print \$ 3 }'" ;
128+ patch_sources " buildah" , " v$version " , " tests" ;
128129
129130 # Patch mkdir to always use -p
130131 run_command " sed -i 's/ mkdir /& -p /' tests/*.bats tests/helpers.bash" ;
0 commit comments