From: Yu Watanabe Date: Sat, 18 Mar 2023 13:20:49 +0000 (+0900) Subject: test-systemd-tmpfiles.py: use test_content() at one more place X-Git-Tag: v254-rc1~984^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=015ddd4bf03c011d7051590b8bfb89979a52d162;p=thirdparty%2Fsystemd.git test-systemd-tmpfiles.py: use test_content() at one more place --- diff --git a/test/test-systemd-tmpfiles.py b/test/test-systemd-tmpfiles.py index a60a6909a4f..8b42c66db84 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)