]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tests/auth_log: Make samba.tests.auth_log test executable
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 14 Jun 2023 01:47:20 +0000 (13:47 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 14 Jun 2023 22:57:35 +0000 (22:57 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/auth_log.py [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 8f9f487..462e22a
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
 # Unix SMB/CIFS implementation.
 # Copyright (C) Andrew Bartlett <abartlet@samba.org> 2017
 #
 
 """Tests for the Auth and AuthZ logging.
 """
+
+import sys
+
+sys.path.insert(0, 'bin/python')
+
 import samba.tests
 from samba.dcerpc import srvsvc, dnsserver
 import os
@@ -1475,3 +1481,8 @@ class AuthLogTests(samba.tests.auth_log_base.AuthLogTestBase):
         self.assertEqual("schannel", msg["Authorization"]["authType"])
         self.assertEqual("SEAL", msg["Authorization"]["transportProtection"])
         self.assertTrue(self.is_guid(msg["Authorization"]["sessionId"]))
+
+
+if __name__ == '__main__':
+    import unittest
+    unittest.main()