Skip to content

Commit d81efae

Browse files
committed
Log contents of /etc/wsl.conf if it exists unexpectedly
1 parent 00dc521 commit d81efae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/test.main.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ workflowWithCopyright(
554554
)
555555
runAfterSuccess(
556556
name = "Test - /etc/wsl.conf should not exist",
557-
command = "[ ! -f /etc/wsl.conf ]"
557+
command = "[ ! -f /etc/wsl.conf ] || { cat /etc/wsl.conf; false; }"
558558
)
559559
runAfterSuccess(
560560
name = "Test - C: should be mounted at /mnt/c",

.github/workflows/test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ jobs:
992992
- id: 'step-4'
993993
name: 'Test - /etc/wsl.conf should not exist'
994994
shell: 'wsl-bash {0}'
995-
run: '[ ! -f /etc/wsl.conf ]'
995+
run: '[ ! -f /etc/wsl.conf ] || { cat /etc/wsl.conf; false; }'
996996
if: |-
997997
always()
998998
&& (steps.step-1.outcome == 'success')

0 commit comments

Comments
 (0)