From 980c3df24d919884c887b5da8c201be9086924bf Mon Sep 17 00:00:00 2001 From: Daniel Garcia Moreno Date: Wed, 18 Sep 2024 13:15:02 +0200 Subject: [PATCH] Fix pam-module test binary package --- test/binary/pam-module-1.0-0.x86_64.rpm | Bin 0 -> 7932 bytes test/test_file_digest.py | 4 ---- test/test_lint.py | 1 - 3 files changed, 5 deletions(-) diff --git a/test/binary/pam-module-1.0-0.x86_64.rpm b/test/binary/pam-module-1.0-0.x86_64.rpm index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..c5cf1910d2176d10c1c5608ce1bf9774a436a36c 100644 GIT binary patch literal 7932 zcmeI1dt4J&7RM)oidYpzMXA=YwYwlBWb&9KEND?cXc16UL_j*PKp@G)nFI;7TGY1U zyFSp5_FHSp<_rRO|vwq<8%fC%NQ7yUaw~uqd|kwT1u;?&^=}3IF6vTj8ds4IZjQI zl%7_SMx~lI(kd0H;8ki8ndayb77fyaOenRG#SwUW(+8*t~ zFnyZK8dDIVv%#vmpN`C4K~o>{ldy42tZv61R4+tgpmRC61K%87Ryzi;?(u z$(}6nKO|1?U{5p`G#LvD@92r2dz688c{_9}@{&Jkad7`+$7Ad}wLvmY=TkKPN#;|B`;(Q>$W04Ufy;T`HZ5ER*! z68lTMT;c#w@ZV`CD6E%fw8Z-*9s`Q}T>(Y&#YkKyaV#kEe@EiUpr}7ucho;cvOkeH zt;6oB1|mDkJB;^$=ITFH;vo{#pb($OJD?~&R^sata}w7}Y?S!6#Aw~n_(q8xpb(!& z8z`DT7Zm1ptvlj;V6^{>L18U?U*xG280Pmq1q%K=cS+m;ipG~qjOGRZp3e}E#{Q^x zVo>kIlrKHN?VM^NoN?7=w0TSbnsb9M(O;1p}J znMB59&BQsg$*#bo@)*u$=NxE+)$YwR48<{&9cLUi6HD3Q&dOVHo4}h`&I;Z{ht-ao ztYA0WD14g3g!4wDi7`<)%ZZ$TtQOvkTtoa=df_i`StudTWTp8$h3F7D1%ncVVPqA{ z<#Ogw-o{yzCMH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z0C2ZrtHzU@w>*T9+>&$Y@mO>?hr4C~$ROi^U2w(HCm_N3qD z4|BppZ#J*=-AHIR6dmc_lOGu77dr0Z`R~V-cRfFA((=n`O}A9{BKsQ-7%}Mf#N%gv1H7R1o?faLj$Ly-xHKVE8QWN-mR+r;nOxw_7`ex#8$%7c* zyrJf?8>U?9T9O>J^r&B!f5gLynLh;{+CNNF_VsB$nfLsS{(bfhc@#nLSf`Jom#;UD zJl1E})|$+U$82bncR|6Wihk^TV-Q~ZJbQcp<)(FSbeprVF-Z1VahX0RclQeK zBWG?O*KWJoK7L^zpSUi&YHNDGM*oKRgrHxv zb^8xKr5Z-W+0I>`7WP^El9Usg*3UO#>z#k^c0+$Gh7Vp;v-PB+dtLGM<7LNo>>d%< z@?>2l)37|Vc}3vTT(9tR&LV+YF=5=C`9WB0VeH=cvWZ_!{2*lhSL=NVXQ(4%?MGD~ z`+0plZn5TBR`EK+7mX!hA8>cZtvi&tHSv9=WkczMn~9^UqB4Ew$6eo7P+TMP>#?fo zKxJFS+3IVnu4wi33yv6qZ?e6LSDM9w_gZ_`_+Pu}-D+q)OtWt;<2P)YDkd&jQW6~f zkECA%EUgv$PVKPl4E*+o2gAPL4RL%f=5fyc;44Z|wD-Htvlrk0;hp`fpU&%kEo@Ke z>ACxe(VlbaR}~f~EW;x5?Ks|Ag9VPkR> gD~7E8oX2F}cdNBwSX%j7y8P~qL9RcF-YHZ534FtEvj6}9 literal 0 HcmV?d00001 diff --git a/test/test_file_digest.py b/test/test_file_digest.py index 18df2b166..de149b609 100644 --- a/test/test_file_digest.py +++ b/test/test_file_digest.py @@ -387,7 +387,6 @@ def test_default_digester(): @pytest.mark.parametrize('package', ['binary/pam-module']) -@pytest.mark.skipif(os.getuid() != 0, reason='Root can extract this package, so nothing to check') def test_pam_modules(tmp_path, package, digestcheck): output, test = get_digestcheck('digests_pam.config') test.check(get_tested_package(package, tmp_path)) @@ -396,7 +395,6 @@ def test_pam_modules(tmp_path, package, digestcheck): @pytest.mark.parametrize('package', ['binary/pam-module']) -@pytest.mark.skipif(os.getuid() != 0, reason='Root can extract this package, so nothing to check') def test_pam_includeonly_nonexistent(tmp_path, package, digestcheck): output, test = get_digestcheck('digests_pam1.config') test.check(get_tested_package(package, tmp_path)) @@ -405,7 +403,6 @@ def test_pam_includeonly_nonexistent(tmp_path, package, digestcheck): @pytest.mark.parametrize('package', ['binary/pam-module']) -@pytest.mark.skipif(os.getuid() != 0, reason='Root can extract this package, so nothing to check') def test_pam_includeonly_existent(tmp_path, package, digestcheck): output, test = get_digestcheck('digests_pam2.config') test.check(get_tested_package(package, tmp_path)) @@ -414,7 +411,6 @@ def test_pam_includeonly_existent(tmp_path, package, digestcheck): @pytest.mark.parametrize('package', ['binary/pam-module']) -@pytest.mark.skipif(os.getuid() != 0, reason='Root can extract this package, so nothing to check') def test_pam(tmp_path, package, digestcheck): output, test = get_digestcheck('digests_pam3.config') test.check(get_tested_package(package, tmp_path)) diff --git a/test/test_lint.py b/test/test_lint.py index 43b3077c0..24a202af6 100644 --- a/test/test_lint.py +++ b/test/test_lint.py @@ -347,7 +347,6 @@ def test_header_information(capsys): def test_run_full_rpm(capsys, packages, configs): # the package cannot be extracted using rpm2cpio because it contains a directory without 'x' permission packages.remove(Path('test/binary/python311-pytest-xprocess-0.23.0-2.4.noarch.rpm')) - packages.remove(Path('test/binary/pam-module-1.0-0.x86_64.rpm')) number_of_pkgs = len(packages) additional_options = {