Skip to content

Commit

Permalink
Log contents of /etc/wsl.conf if it exists unexpectedly
Browse files Browse the repository at this point in the history
  • Loading branch information
Vampire committed May 27, 2024
1 parent 00dc521 commit d81efae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ workflowWithCopyright(
)
runAfterSuccess(
name = "Test - /etc/wsl.conf should not exist",
command = "[ ! -f /etc/wsl.conf ]"
command = "[ ! -f /etc/wsl.conf ] || { cat /etc/wsl.conf; false; }"
)
runAfterSuccess(
name = "Test - C: should be mounted at /mnt/c",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ jobs:
- id: 'step-4'
name: 'Test - /etc/wsl.conf should not exist'
shell: 'wsl-bash {0}'
run: '[ ! -f /etc/wsl.conf ]'
run: '[ ! -f /etc/wsl.conf ] || { cat /etc/wsl.conf; false; }'
if: |-
always()
&& (steps.step-1.outcome == 'success')
Expand Down

0 comments on commit d81efae

Please sign in to comment.