[Reproducible-commits] [debbindiff] 01/01: Skip squashfs listing test if uid 1000 is not lunar

Jérémy Bobbio lunar at moszumanska.debian.org
Thu Jul 30 13:59:27 UTC 2015


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

lunar pushed a commit to branch master
in repository debbindiff.

commit 5925b8d23770f2ed73d42a36727c3d5f3cfad432
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Thu Jul 30 13:57:51 2015 +0000

    Skip squashfs listing test if uid 1000 is not lunar
    
    This is a stopgap solution until `unsquashfs -lls` gets a way to
    force the display of numeric UID/GID.
---
 tests/comparators/test_squashfs.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/comparators/test_squashfs.py b/tests/comparators/test_squashfs.py
index f6a5a15..7e60af9 100644
--- a/tests/comparators/test_squashfs.py
+++ b/tests/comparators/test_squashfs.py
@@ -20,6 +20,7 @@
 
 import codecs
 import os.path
+import pwd
 import shutil
 import pytest
 from debbindiff.comparators import specialize
@@ -59,6 +60,8 @@ def test_superblock(differences):
     expected_diff = open(os.path.join(os.path.dirname(__file__), '../data/squashfs_superblock_expected_diff')).read()
     assert differences[0].unified_diff == expected_diff
 
+# I know, the next line is pretty lame. But fixing #794096 would be the real fix for this.
+ at pytest.mark.skipif(pwd.getpwuid(1000).pw_name != 'lunar', reason='uid 1000 is not lunar')
 @pytest.mark.skipif(tool_missing('unsquashfs'), reason='missing unsquashfs')
 def test_listing(differences):
     expected_diff = open(os.path.join(os.path.dirname(__file__), '../data/squashfs_listing_expected_diff')).read()

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



More information about the Reproducible-commits mailing list