Merging upstream version 2.1~rc0 (Closes: #1015722).
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
9489161ac8
commit
316e846c86
504 changed files with 6751 additions and 2957 deletions
|
@ -1,4 +1,5 @@
|
|||
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
#
|
||||
# Copyright (c) 2015-2016 Western Digital Corporation or its affiliates.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
|
@ -27,7 +28,6 @@ NVMe Identify ctrl Testcase:-
|
|||
|
||||
"""
|
||||
|
||||
from nose.tools import assert_equal
|
||||
from nvme_test import TestNVMe
|
||||
|
||||
|
||||
|
@ -37,20 +37,20 @@ class TestNVMeIdctrlCmd(TestNVMe):
|
|||
Represents Id ctrl testcase
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
def setUp(self):
|
||||
""" Pre Section for TestNVMeIdctrlCmd. """
|
||||
TestNVMe.__init__(self)
|
||||
super().setUp()
|
||||
self.setup_log_dir(self.__class__.__name__)
|
||||
|
||||
def __del__(self):
|
||||
def tearDown(self):
|
||||
""" Post Section for TestNVMeIdctrlCmd
|
||||
|
||||
Call super class's destructor.
|
||||
"""
|
||||
TestNVMe.__del__(self)
|
||||
super().tearDown()
|
||||
|
||||
def test_id_ctrl(self):
|
||||
""" Testcase main """
|
||||
vendor = True
|
||||
assert_equal(self.get_id_ctrl(), 0)
|
||||
assert_equal(self.get_id_ctrl(vendor), 0)
|
||||
self.assertEqual(self.get_id_ctrl(), 0)
|
||||
self.assertEqual(self.get_id_ctrl(vendor), 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue