File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -457,17 +457,22 @@ def test_multiline_events(self):
457
457
"""
458
458
wineventlog - Event with newlines and control characters
459
459
"""
460
+ accountName = "MS4\x1e $"
461
+ # Windows 2025 Server encodes message differently
462
+ if platform .platform ().startswith ("Windows-2025Server" ):
463
+ accountName = "MS4_$"
464
+
460
465
msg = """
461
466
A trusted logon process has been registered with the Local Security Authority.
462
467
This logon process will be trusted to submit logon requests.
463
468
464
469
Subject:
465
470
466
471
Security ID: SYSTEM
467
- Account Name: MS4 \x1e $
472
+ Account Name: {accountName}
468
473
Account Domain: WORKGROUP
469
474
Logon ID: 0x3e7
470
- Logon Process Name: IKE"""
475
+ Logon Process Name: IKE""" . format ( accountName = accountName )
471
476
self .write_event_log (msg )
472
477
evts = self .read_events ()
473
478
self .assertTrue (len (evts ), 1 )
You can’t perform that action at this time.
0 commit comments