mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
test-systemd-tmpfiles.py: use test_content() at one more place
This commit is contained in:
parent
056ff0b455
commit
015ddd4bf0
@ -199,12 +199,7 @@ def test_hard_cleanup(*, user):
|
||||
test_content('f= {} - - - - ' + label, label, user=user, subpath='/deep/1/2', path_cb=valid_symlink)
|
||||
|
||||
def test_base64():
|
||||
test_line('f~ /tmp/base64-test - - - - UGlmZgpQYWZmClB1ZmYgCg==', user=False, returncode=0)
|
||||
|
||||
with open("/tmp/base64-test", mode='r') as f:
|
||||
d = f.read()
|
||||
|
||||
assert d == "Piff\nPaff\nPuff \n"
|
||||
test_content('f~ {} - - - - UGlmZgpQYWZmClB1ZmYgCg==', "Piff\nPaff\nPuff \n", user=False)
|
||||
|
||||
if __name__ == '__main__':
|
||||
test_invalids(user=False)
|
||||
|
Loading…
Reference in New Issue
Block a user