diff options
| author | Joseph Sutton <josephsutton@catalyst.net.nz> | 2023-06-14 13:47:20 +1200 |
|---|---|---|
| committer | Andrew Bartlett <abartlet@samba.org> | 2023-06-14 22:57:35 +0000 |
| commit | 11671a743fe914a0abbee2326cbd8df359d50beb (patch) | |
| tree | 1d3a21afa238125aac4bb1a1dec9434043183f21 /python | |
| parent | efb85e3d6dd976deb89a46089a5556b846c478d9 (diff) | |
| download | samba-11671a743fe914a0abbee2326cbd8df359d50beb.tar.gz samba-11671a743fe914a0abbee2326cbd8df359d50beb.tar.bz2 samba-11671a743fe914a0abbee2326cbd8df359d50beb.zip | |
tests/auth_log: Make samba.tests.auth_log test executable
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
| -rwxr-xr-x[-rw-r--r--] | python/samba/tests/auth_log.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/python/samba/tests/auth_log.py b/python/samba/tests/auth_log.py index 8f9f487f82a..462e22af62c 100644..100755 --- 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 <abartlet@samba.org> 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() |
