From: Joseph Sutton Date: Wed, 14 Jun 2023 01:47:20 +0000 (+1200) Subject: tests/auth_log: Make samba.tests.auth_log test executable X-Git-Tag: talloc-2.4.1~391 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11671a743fe914a0abbee2326cbd8df359d50beb;p=thirdparty%2Fsamba.git tests/auth_log: Make samba.tests.auth_log test executable Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/auth_log.py b/python/samba/tests/auth_log.py old mode 100644 new mode 100755 index 8f9f487f82a..462e22af62c --- a/python/samba/tests/auth_log.py +++ b/python/samba/tests/auth_log.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # Unix SMB/CIFS implementation. # Copyright (C) Andrew Bartlett 2017 # @@ -17,6 +18,11 @@ """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()