Skip to content

Commit 4f0ef59

Browse files
committed
fix test setup in docs
Signed-off-by: Benny Zlotnik <bzlotnik@redhat.com>
1 parent e9b790d commit 4f0ef59

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

  • python/packages/jumpstarter-driver-ridesx

python/packages/jumpstarter-driver-ridesx/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,14 @@ Both drivers require:
105105

106106
### Flash Single Partition
107107

108-
```{testcode}
109-
# Flash a single partition
108+
```{code-block} python
109+
# Flash a single partition (paths must exist; flash runs fastboot on the exporter)
110110
ridesx_client.flash("/path/to/boot.img", target="boot")
111111
```
112112

113113
### Flash Multiple Partitions
114114

115-
```{testcode}
115+
```{code-block} python
116116
# Flash multiple partitions
117117
partitions = {
118118
"boot": "/path/to/boot.img",
@@ -126,22 +126,22 @@ ridesx_client.flash(partitions)
126126

127127
The driver automatically handles compressed images (`.gz`, `.gzip`, `.xz`):
128128

129-
```{testcode}
129+
```{code-block} python
130130
# Flash compressed images - decompression is automatic
131131
ridesx_client.flash("/path/to/boot.img.gz", target="boot")
132132
```
133133

134134
### Power Control
135135

136-
```{testcode}
136+
```{code-block} python
137137
# Turn device power on
138-
ridesx_power_client.on()
138+
power_client.on()
139139
140140
# Turn device power off
141-
ridesx_power_client.off()
141+
power_client.off()
142142
143143
# Power cycle the device
144-
ridesx_power_client.cycle(wait=5) # Wait 5 seconds between off/on
144+
power_client.cycle(wait=5) # Wait 5 seconds between off/on
145145
```
146146

147147
## Features

0 commit comments

Comments
 (0)