~pkopylov/qa-regression-testing:testlib_assert_file_type

Last commit made on 2023-01-18
Get this branch:
git clone -b testlib_assert_file_type https://git.launchpad.net/~pkopylov/qa-regression-testing
Only Pavel Kopylov can upload to this branch. If you are Pavel Kopylov please log in for upload directions.

Branch merges

Branch information

Name:
testlib_assert_file_type
Repository:
lp:~pkopylov/qa-regression-testing

Recent commits

56ba956... by Pavel Kopylov

Fix according to the latest review.

74569ca... by Pavel Kopylov

Fix a typos.

00f437d... by Pavel Kopylov

Fix to explicitly iterate over each line and test them separately
to find the match.

1fbe97b... by Pavel Kopylov

scripts/testlib.py: the function assertFileType() was improved to
handle files that have two or more recognzied file-types correctly.

b4a0304... by Alex Murray

scripts/test-snapd.py: Add functional test for /tmp/snap-private-tmp

This comes from the fix for CVE-2022-3328

Signed-off-by: Alex Murray <email address hidden>

0b01938... by Alex Murray

scripts/test-snapd.py: Fix checking of snapd version in test_seccomp_daemon_user

Signed-off-by: Alex Murray <email address hidden>

ce77bc5... by Alex Murray

scripts/test-snapd.py: Skip test_seccomp_daemon_user test on older snapd

Signed-off-by: Alex Murray <email address hidden>

301d59d... by Alex Murray

scripts/test-snapd.py: Actually exit with error on test failures

Signed-off-by: Alex Murray <email address hidden>

fac818d... by Alex Murray

scripts/test-snapd.py: Support testing on older snapd versions

Older versions of snapd (such as in Debian buster) may only output the grade or
only the channel name (instead of the complete track name - which is
"<channel>/<grade>") in snap info - so ensure the tests can support this older
format.

Signed-off-by: Alex Murray <email address hidden>

699f269... by Po-Hsu Lin

test-apparmor.py: make sure opened files are closed

Use with open to make sure files will be closed properly.

Signed-off-by: Po-Hsu Lin <email address hidden>