]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python:tests: Save files with intended contents
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 16 Aug 2023 23:13:50 +0000 (11:13 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 21 Aug 2023 23:37:29 +0000 (23:37 +0000)
We presumably here meant to use the variable ‘contents’, not
‘test_contents’.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/smb.py

index e43b030adcc238b53ce921933b775fa9cf92808d..46080c79439b6b29aaca979a866fe7c90aa9046f 100644 (file)
@@ -109,7 +109,7 @@ class SMBTests(samba.tests.TestCase):
             for i in range(1, 4):
                 contents = "I'm file {0} in dir {1}!".format(i, subdir)
                 path = self.make_sysvol_path(subdir, "file-{0}.txt".format(i))
-                self.smb_conn.savefile(path, test_contents.encode('utf8'))
+                self.smb_conn.savefile(path, contents.encode('utf8'))
                 filepaths.append(path)
 
         # sanity-check these dirs/files exist