Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 5, 2024
1 parent 19e93dc commit 81dce4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This directory contains stub scripts for testing DTS update and deploy logic
in complex scenarios.

## Running on host
## Running on host

Running test on the host may result in unpredictable results because of the
missing programs and different version of certain tools. It is advised to run
Expand Down Expand Up @@ -32,11 +32,11 @@ robot -L TRACE -v config:qemu -v rte_ip:127.0.0.1 -v snipeit:no dts/dts-tests.ro
### Running manually

1. Boot the latest DTS image in QEMU. Recommended steps:
- start QEMU according to
- start QEMU according to
[OSFV documentation](https://github.com/Dasharo/open-source-firmware-validation/blob/develop/docs/qemu.md#booting)
(use `os` switch, not `firmware`)
- enable network boot and boot into DTS via iPXE
- enable SSH server (option `8` in main menu)
- enable network boot and boot into DTS via iPXE
- enable SSH server (option `8` in main menu)

1. Deploy updated scripts and tests into qemu

Expand Down
2 changes: 1 addition & 1 deletion tests/flashrom-mock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if [[ -n "$READ_FLAG" ]]; then

# Create a mock rom.bin file with some dummy data
echo "This is a mock rom.bin file for testing purposes." > "$OUTPUT_FILE"

# Verify if the file is created
if [ -f "$OUTPUT_FILE" ]; then
echo "Mock flashrom: Successfully created $OUTPUT_FILE"
Expand Down

0 comments on commit 81dce4e

Please sign in to comment.