提交 9278bc9f 编写于 作者: J Jiri Pirko 提交者: David S. Miller

selftests: test netdevsim reload forbid and fail

Extend netdevsim reload test by simulation of failures.
Signed-off-by: NJiri Pirko <jiri@mellanox.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 155ddfc5
......@@ -150,6 +150,30 @@ reload_test()
devlink dev reload $DL_HANDLE
check_err $? "Failed to reload"
echo "y"> $DEBUGFS_DIR/fail_reload
check_err $? "Failed to setup devlink reload to fail"
devlink dev reload $DL_HANDLE
check_fail $? "Unexpected success of devlink reload"
echo "n"> $DEBUGFS_DIR/fail_reload
check_err $? "Failed to setup devlink reload not to fail"
devlink dev reload $DL_HANDLE
check_err $? "Failed to reload after set not to fail"
echo "y"> $DEBUGFS_DIR/dont_allow_reload
check_err $? "Failed to forbid devlink reload"
devlink dev reload $DL_HANDLE
check_fail $? "Unexpected success of devlink reload"
echo "n"> $DEBUGFS_DIR/dont_allow_reload
check_err $? "Failed to re-enable devlink reload"
devlink dev reload $DL_HANDLE
check_err $? "Failed to reload after re-enable"
log_test "reload test"
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册