Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Harden logic when looking for syslog entries for failing test#15841

Merged
iSazonov merged 1 commit into
PowerShell:masterPowerShell/PowerShell:masterfrom
JamesWTruher:SyslogTest001JamesWTruher/PowerShell-1:SyslogTest001Copy head branch name to clipboard
Jul 30, 2021
Merged

Harden logic when looking for syslog entries for failing test#15841
iSazonov merged 1 commit into
PowerShell:masterPowerShell/PowerShell:masterfrom
JamesWTruher:SyslogTest001JamesWTruher/PowerShell-1:SyslogTest001Copy head branch name to clipboard

Conversation

@JamesWTruher

Copy link
Copy Markdown
Collaborator

PR Summary

Change and harden the logic when determining whether a syslog entry has been made. Rather than using the logid, I am determining whether or not a particular PID shows up as a syslog entry. This is a fix for #15814.

PR Context

PR Checklist

@ghost ghost assigned iSazonov Jul 29, 2021
@iSazonov iSazonov added the CL-Test Indicates that a PR should be marked as a test change in the Change Log label Jul 29, 2021
@rjmholt rjmholt requested review from PaulHigin and TravisEz13 July 29, 2021 16:22
Comment on lines +256 to +259
$items = Get-PSSysLog -Path $SyslogFile
@($items).Count | Should -BeGreaterThan 0
$logs = $items | Where-Object { $_.ProcessId -eq $result }
$logs | Should -BeNullOrEmpty

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the test previously assumed there would be no entries, but now we expect some entries but none with the PID data. What's changed?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this was added to make it more robust.

@iSazonov iSazonov merged commit 881f31b into PowerShell:master Jul 30, 2021
@iSazonov iSazonov added this to the 7.2.0-preview.9 milestone Jul 30, 2021
@ghost

ghost commented Aug 23, 2021

Copy link
Copy Markdown

🎉v7.2.0-preview.9 has been released which incorporates this pull request.:tada:

Handy links:

@ghost

ghost commented Sep 28, 2021

Copy link
Copy Markdown

🎉v7.2.0-preview.10 has been released which incorporates this pull request.:tada:

Handy links:

@JamesWTruher JamesWTruher deleted the SyslogTest001 branch September 23, 2023 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-Test Indicates that a PR should be marked as a test change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.