using apt-cache in autopkgtest and test cases
Paul Gevers
elbrus at debian.org
Mon Jan 2 21:16:29 UTC 2017
Hi all,
I have changed my apt-cache implementation to use python3-apt instead
and have dropped the transformation from codename to suite name (as this
is only an improvement over the current implementation which assumes
this, I'll update the documentation to mention this). Now it works when
testing manually, but the regression tests fail. From the output of the
commands, it looks to me like python3-apt picks up the real
/etc/apt/sources.list instead of the <chroot>/etc/apt/sources.list that
is created by the test. Does anybody here know how to fix this behavior
in the test case? Or how to properly debug this, as so far, the created
<chroot>/etc/apt/sources.list file has been removed by the time I get to
the shell in my attempts.
Paul
test suite output passing by (notice it says *sid* instead of *fluffy*):
autopkgtest: DBG: testbed command ['sh', '-ec', "sed -rn
's/^(deb|deb-src) +(\\[.*\\] *)?([^
]*(ubuntu.com|debian.org|ftpmaster|file:\\/\\/\\/tmp\\/testarchive)[^
]*) +([^ -]+) +(.*)$/\\1 \\2\\3 sid-proposed \\6/p'
/etc/apt/sources.list > /etc/apt/sources.list.d/sid-proposed.list; for
retry in 1 2 3; do apt-get --no-list-cleanup -o
Dir::Etc::sourcelist=/etc/apt/sources.list.d/sid-proposed.list -o
Dir::Etc::sourceparts=/dev/null update 2>&1 && break || sleep 15;
done"], kind short, sout raw, serr pipe, env []
autopkgtest: DBG: testbed command exited with code 0
autopkgtest: DBG: testbed command ['sh', '-ec', 'mkdir -p
/etc/apt/preferences.d; PKGS="foo bar"; printf "Package: $PKGS\\nPin:
release a=sid-proposed\\nPin-Priority: 990\\n\\nPackage: *\\nPin:
release a=sid\\nPin-Priority: 900\\n\\nPackage: *\\nPin: release
a=sid-updates\\nPin-Priority: 900\\n\\nPackage: *\\nPin: release
a=sid-proposed\\nPin-Priority: 800\\n" >
/etc/apt/preferences.d/autopkgtest-sid-proposed; '], kind short, sout
raw, serr pipe, env []
autopkgtest: DBG: testbed command exited with code 0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20170102/ad9ef242/attachment.sig>
More information about the autopkgtest-devel
mailing list