diff options
author | gregor herrmann <gregoa@debian.org> | 2022-01-17 21:23:46 +0100 |
---|---|---|
committer | gregor herrmann <gregoa@debian.org> | 2022-01-17 21:23:46 +0100 |
commit | f727596d3f7ad64922702bca3adc82939761b413 (patch) | |
tree | 126ec88d31230d81e1d8074735c5b97d658fbb78 | |
parent | 826ed69595bd5f7f20f67fc60a10288967c77f16 (diff) |
Fix autopkgtest failure.
Update new test t/cme-scripts.t to look for the cme scripts in different
places during build (i.e. within the source tree) and during autopkgtests
(i.e. against the installed package).
Thanks: ci.debian.net.
-rw-r--r-- | t/cme-scripts.t | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/t/cme-scripts.t b/t/cme-scripts.t index 2b3d7215..cc24f829 100644 --- a/t/cme-scripts.t +++ b/t/cme-scripts.t @@ -53,11 +53,16 @@ my $wr_root = path('wr_root/cme-scripts'); # cleanup before tests $wr_root -> remove_tree; +my $script_path + = $ENV{AUTOPKGTEST_TMP} + ? '/usr/share/perl5/Config/Model/scripts' + : 'lib/Config/Model/scripts'; + subtest "bump_dependency" => sub { my $work_dir = $wr_root->child("bump_dep_1"); my $debian_dir = $work_dir->child("debian"); $debian_dir->mkpath({mode => oct(755)}); - my $script = path("lib/Config/Model/scripts/bump-dependency-version")->absolute; + my $script = path("$script_path/bump-dependency-version")->absolute; # put control data in place my $control_file = $debian_dir->child("control"); |