]> git.saurik.com Git - apt.git/blobdiff - test/integration/framework
check lists/ content in tests doing rollback
[apt.git] / test / integration / framework
index 8ccbe7f6db9bd78284a7a91c24dd177183858ca5..d9851a48cfe065dcab121924f9752e4f6894078c 100644 (file)
@@ -1277,6 +1277,15 @@ pause() {
        read IGNORE
 }
 
+listcurrentlistsdirectory() {
+       find rootdir/var/lib/apt/lists -maxdepth 1 -type d | while read line; do
+               stat --format '%U:%G:%a:%n' "$line"
+       done
+       find rootdir/var/lib/apt/lists -maxdepth 1 \! -type d | while read line; do
+               stat --format '%U:%G:%a:%s:%y:%n' "$line"
+       done
+}
+
 ### The following tests are run by most test methods automatically to check
 ### general things about commands executed without writing the test every time.