This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=3ff18b853d55405245dc30176fec37d15292f0a2

commit 3ff18b853d55405245dc30176fec37d15292f0a2
Author: Guillem Jover <[email protected]>
AuthorDate: Sun Jul 5 17:04:20 2020 +0200

    test: Use File::Path::make_path() instead of chained mkdir() in Dpkg_Path.t
---
 debian/changelog      |  2 ++
 scripts/t/Dpkg_Path.t | 13 +++++--------
 2 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index b3c56dd3c..94543441c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,8 @@ dpkg (1.20.4) UNRELEASED; urgency=medium
       directory, except for the trustkeys.db file if present.
   * Build system:
     - Add Module::Signature as configure recommends for CPAN.
+  * Test suite:
+    - Use File::Path::make_path() instead of chained mkdir() in Dpkg_Path.t.
 
   [ Updated programs translations ]
   * German (Sven Joachim).
diff --git a/scripts/t/Dpkg_Path.t b/scripts/t/Dpkg_Path.t
index fbf883d64..2a82c594f 100644
--- a/scripts/t/Dpkg_Path.t
+++ b/scripts/t/Dpkg_Path.t
@@ -19,20 +19,17 @@ use warnings;
 use Test::More tests => 16;
 use Test::Dpkg qw(:paths);
 
+use File::Path qw(make_path);;
+
 use_ok('Dpkg::Path', 'canonpath', 'resolve_symlink',
        'check_files_are_the_same', 'get_pkg_root_dir',
        'guess_pkg_root_dir', 'relative_to_pkg_root');
 
 my $tmpdir = test_get_temp_path();
 
-mkdir "$tmpdir/a";
-mkdir "$tmpdir/a/b";
-mkdir "$tmpdir/a/b/c";
-mkdir "$tmpdir/a/DEBIAN";
-mkdir "$tmpdir/debian";
-mkdir "$tmpdir/debian/a";
-mkdir "$tmpdir/debian/a/b";
-mkdir "$tmpdir/debian/a/b/c";
+make_path("$tmpdir/a/b/c");
+make_path("$tmpdir/a/DEBIAN");
+make_path("$tmpdir/debian/a/b/c");
 symlink 'a/b/c', "$tmpdir/cbis";
 symlink '/this/does/not/exist', "$tmpdir/tmp";
 symlink '.', "$tmpdir/here";

-- 
Dpkg.Org's dpkg

Reply via email to