]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
test: py: Add generic sata test
authorMichal Simek <michal.simek@xilinx.com>
Thu, 18 Jan 2018 08:20:50 +0000 (09:20 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 31 Jan 2018 12:15:49 +0000 (13:15 +0100)
This sata test should be run on zc1751 xm017 dc3.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
test/py/tests/test_sata.py

index b641125ef69ada2ad2a087868996a9082737d272..ecad3067ab30ca2134389810add204d9141a3da9 100644 (file)
@@ -32,3 +32,11 @@ def test_sata_probe_zcu102(u_boot_console):
     expected_response = "Type: Hard Disk"
     assert(expected_response in response)
 
+@pytest.mark.boardspec("!xilinx_zynqmp_zcu102_rev1_0")
+@pytest.mark.boardspec("!xilinx_zynqmp_zcu102_revA")
+@pytest.mark.buildconfigspec("cmd_i2c")
+@pytest.mark.buildconfigspec("cmd_scsi")
+def test_sata_probe(u_boot_console):
+    response = u_boot_console.run_command("scsi reset")
+    expected_response = "Type: Hard Disk"
+    assert(expected_response in response)