Skip to content

Commit

Permalink
Perl unit tests: Define "constants" as package vars in BaseTestCase
Browse files Browse the repository at this point in the history
This will allow their use in tests.
  • Loading branch information
jrohel authored and kontura committed Dec 10, 2024
1 parent fd199fe commit ab8da09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/perl5/libdnf5/BaseTestCase.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ use libdnf5::base;
use libdnf5::repo;


my $PROJECT_BINARY_DIR = $ENV{"PROJECT_BINARY_DIR"};
my $PROJECT_SOURCE_DIR = $ENV{"PROJECT_SOURCE_DIR"};
our $PROJECT_BINARY_DIR = $ENV{"PROJECT_BINARY_DIR"};
our $PROJECT_SOURCE_DIR = $ENV{"PROJECT_SOURCE_DIR"};

sub new {
my $class = shift;
Expand Down

0 comments on commit ab8da09

Please sign in to comment.