Skip to content

Commit

Permalink
Merge pull request #1173 from jferlan/virsh_nodedev_create_destroy
Browse files Browse the repository at this point in the history
virsh_nodedev_create_destroy: Use TestNAError
  • Loading branch information
lmr committed Dec 3, 2013
2 parents 1d29232 + 815f63c commit 4455125
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def run_virsh_nodedev_create_destroy(test, params, env):

# No HBA or no vHBA supporting
if not vport_ops_list:
raise error.TestFail("No HBAs to support vHBA on the host!")
raise error.TestNAError("No HBAs to support vHBA on the host!")

# Check ports connectivity
port_state_dict = check_port_connectivity(vport_ops_list)
Expand All @@ -249,7 +249,7 @@ def run_virsh_nodedev_create_destroy(test, params, env):

# No online port is available
if not port_online_list:
raise error.TestFail("No port is active!")
raise error.TestNAError("No port is active!")

if dev_name:
# Negative testing for creating device
Expand Down

0 comments on commit 4455125

Please sign in to comment.