Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit 3080057

Browse files
authored
Merge pull request #710 from jumpstarter-dev/mangelajo-patch-1
tmt: remove default reboot_cmd which causes issues with some tmt versions
2 parents 7890749 + dfd52bc commit 3080057

3 files changed

Lines changed: 14 additions & 8 deletions

File tree

packages/jumpstarter-driver-tmt/jumpstarter_driver_tmt/driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class TMT(Driver):
99
""" driver for Jumpstarter"""
1010

11-
reboot_cmd: str = "j power cycle"
11+
reboot_cmd: str = ""
1212
default_username: str = ""
1313
default_password: str = ""
1414

packages/jumpstarter-driver-tmt/jumpstarter_driver_tmt/driver_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def test_drivers_tmt_run_tmt_with_forward_ssh():
134134
result = client.run_tmt_local(True, "tmt", "user", "pass", ["arg1"])
135135
assert result == 0
136136
mock_run_tmt.assert_called_once_with(
137-
"localhost", 2222, "tmt", "user", "pass", "j power cycle", ["arg1"]
137+
"localhost", 2222, "tmt", "user", "pass", "", ["arg1"]
138138
)
139139

140140

@@ -148,7 +148,7 @@ def test_drivers_tmt_run_tmt_with_direct_address():
148148
result = client.run_tmt_local(False, "tmt", "user", "pass", ["arg1"])
149149
assert result == 0
150150
mock_run_tmt.assert_called_once_with(
151-
"127.0.0.1", 22, "tmt", "user", "pass", "j power cycle", ["arg1"]
151+
"127.0.0.1", 22, "tmt", "user", "pass", "", ["arg1"]
152152
)
153153

154154

@@ -168,7 +168,7 @@ def test_drivers_tmt_run_tmt_fallback_to_forwarding():
168168
result = client.run_tmt_local(False, "tmt", "user", "pass", ["arg1"])
169169
assert result == 0
170170
mock_run_tmt.assert_called_once_with(
171-
"localhost", 2222, "tmt", "user", "pass", "j power cycle", ["arg1"]
171+
"localhost", 2222, "tmt", "user", "pass", "", ["arg1"]
172172
)
173173

174174

@@ -236,7 +236,7 @@ def test_drivers_tmt_driver_defaults():
236236
with serve(instance) as client:
237237
# Test default reboot_cmd
238238
reboot_cmd = client.call("get_reboot_cmd")
239-
assert reboot_cmd == "j power cycle"
239+
assert reboot_cmd == ""
240240

241241
# Test default username and password
242242
username, password = client.call("get_default_user_pass")

uv.lock

Lines changed: 9 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)