1 ##############################################################################
2 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
12 from vstf.common import ssh
13 from vstf.controller.unittest import model
16 class Test(model.Test):
19 super(Test, self).setUp()
20 self.host = self.source_repo["ip"]
21 self.user = self.source_repo["user"]
22 self.passwd = self.source_repo["passwd"]
25 super(Test, self).tearDown()
27 def test_run_cmd(self):
28 ssh.run_cmd(self.host, self.user, self.passwd, 'ls')
31 if __name__ == "__main__":
33 logging.basicConfig(level=logging.INFO)