Skip to content

Commit

Permalink
Merge pull request os-autoinst#18166 from ricardobranco777/imgproof
Browse files Browse the repository at this point in the history
pc: Add support for testing img-proof PR's
  • Loading branch information
ricardobranco777 authored Nov 21, 2023
2 parents 0db5ac1 + 5918dc2 commit fd4d33e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/publiccloud/img_proof.pm
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ sub run {
$tests = "test_sles";
}

if (get_var('IMG_PROOF_GIT_REPO')) {
my $repo = get_required_var('IMG_PROOF_GIT_REPO');
my $branch = get_required_var('IMG_PROOF_GIT_BRANCH');
assert_script_run "zypper rm -y python3-img-proof python3-img-proof-tests";
assert_script_run "git clone --depth 1 -q --branch $branch $repo";
assert_script_run "cd img-proof";
assert_script_run "python3 setup.py install";
assert_script_run "cp -r usr/* /usr";
}

my $img_proof = $provider->img_proof(
instance => $instance,
tests => $tests,
Expand Down

0 comments on commit fd4d33e

Please sign in to comment.