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

guillem pushed a commit to branch master
in repository dpkg.

commit f30d926803492c98e4baa9b32e7e2bae86d931bd
Author: Guillem Jover <[email protected]>
Date:   Tue Apr 21 07:34:40 2015 +0200

    src/t: Fix dpkg-divert.t when skipping test due to missing /dev/full
    
    We need to restore the admindir permissions or the subsequent
    non-skipped test will not pass.
---
 src/t/dpkg_divert.t | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/t/dpkg_divert.t b/src/t/dpkg_divert.t
index 6785ea1..08f238c 100644
--- a/src/t/dpkg_divert.t
+++ b/src/t/dpkg_divert.t
@@ -620,10 +620,12 @@ SKIP: {
     system("chmod 500 $admindir");
     call_divert(["$testdir/foo"], expect_failure => 1, expect_stderr_like => 
qr/create.*new/);
 
+    system("chmod 755 $admindir");
+
     SKIP: {
         skip 'device /dev/full is not available', 2 if not -c '/dev/full';
 
-        system("chmod 755 $admindir; ln -s /dev/full 
$admindir/diversions-new");
+        system("ln -s /dev/full $admindir/diversions-new");
         call_divert(["$testdir/foo"], expect_failure => 1,
                     expect_stderr_like => qr/(write|flush|close).*new/);
     }

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/dpkg/dpkg.git


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to