From 015ddd4bf03c011d7051590b8bfb89979a52d162 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 18 Mar 2023 22:20:49 +0900 Subject: [PATCH] test-systemd-tmpfiles.py: use test_content() at one more place --- test/test-systemd-tmpfiles.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/test/test-systemd-tmpfiles.py b/test/test-systemd-tmpfiles.py index a60a6909a4..8b42c66db8 100755 --- a/test/test-systemd-tmpfiles.py +++ b/test/test-systemd-tmpfiles.py @@ -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)