Set 'rd.debug' for all tests in 'V=2' mode to make
it more verbose than 'V=1' test mode.
branches: [ main ]
env:
- DEBUGFAIL: "${{ secrets.ACTIONS_STEP_DEBUG && 'rd.debug' }}"
+ # set V to 2 when re-running jobs with debug logging enabled
+ # see https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/troubleshooting-workflows/enabling-debug-logging
+ V: "${{ secrets.ACTIONS_STEP_DEBUG && '2' }}"
jobs:
basic:
$ make clean check
```
-in verbose mode:
+in verbose mode (enabled for GitHub Actions):
```
$ make V=1 clean check
```
+in extra verbose mode (enabled for debug logging):
+```
+$ make V=2 clean check
+```
+
only specific test:
```
$ make TESTS="01 20 40" clean check
TEST_KERNEL_CMDLINE+="quiet "
fi
+if [[ $V == "2" ]]; then
+ TEST_KERNEL_CMDLINE+="rd.debug "
+fi
+
test_dracut() {
# directory for test configurations
mkdir -p /tmp/dracut.conf.d
)" \
TEST_RUN_ID="$RUN_ID" \
${TESTS:+TESTS="$TESTS"} \
- -k V=1 \
+ -k V="${V:=1}" \
check
fi