Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Prohibit the importation of a list of libraries"
[yardstick.git]
/
yardstick
/
tests
/
unit
/
benchmark
/
scenarios
/
storage
/
test_bonnie.py
diff --git
a/yardstick/tests/unit/benchmark/scenarios/storage/test_bonnie.py
b/yardstick/tests/unit/benchmark/scenarios/storage/test_bonnie.py
index
b98dcea
..
d785065
100644
(file)
--- a/
yardstick/tests/unit/benchmark/scenarios/storage/test_bonnie.py
+++ b/
yardstick/tests/unit/benchmark/scenarios/storage/test_bonnie.py
@@
-1,5
+1,3
@@
-#!/usr/bin/env python
-
##############################################################################
# Copyright (c) 2017 Huawei Technologies Co.,Ltd and others.
#
##############################################################################
# Copyright (c) 2017 Huawei Technologies Co.,Ltd and others.
#
@@
-9,8
+7,6
@@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
-# Unittest for yardstick.benchmark.scenarios.storage.bonnie.Bonnie
-
from __future__ import absolute_import
import unittest
from __future__ import absolute_import
import unittest
@@
-65,11
+61,3
@@
class BonnieTestCase(unittest.TestCase):
mock_ssh.SSH.from_node().execute.return_value = (1, '', 'FOOBAR')
self.assertRaises(RuntimeError, b.run, self.result)
mock_ssh.SSH.from_node().execute.return_value = (1, '', 'FOOBAR')
self.assertRaises(RuntimeError, b.run, self.result)
-
-
-def main():
- unittest.main()
-
-
-if __name__ == '__main__':
- main()