Skip to content

Commit

Permalink
Merge pull request #18904 from rfan1/python_pycairo
Browse files Browse the repository at this point in the history
Update 'pycairo_sample.svg' file
  • Loading branch information
DeepthiYV committed Mar 18, 2024
2 parents d256a4d + fd5928e commit aa507ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
File renamed without changes
4 changes: 2 additions & 2 deletions tests/console/python_pycairo.pm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use warnings;
use testapi;
use serial_terminal 'select_serial_terminal';
use utils 'zypper_call';
use version_utils 'is_tumbleweed';
use version_utils qw(is_sle is_leap);

sub run {
my $self = shift;
Expand All @@ -29,7 +29,7 @@ sub run {
# Import pycairo script and sample svg file
assert_script_run("curl -O " . data_url("python/pycairo_sample.py"));

my $sample_svg = is_tumbleweed ? "pycairo_sample_tumbleweed.svg" : "pycairo_sample.svg";
my $sample_svg = (is_leap('<15.6') || is_sle('<15-SP6')) ? "pycairo_sample.svg" : "pycairo_sample_new.svg";
assert_script_run("curl -O " . data_url("python/$sample_svg"));

# Execute pycairo script and generate the svg file
Expand Down

0 comments on commit aa507ac

Please sign in to comment.