Bugfix: fix the error of no sh file 33/27433/2
authorLinda Wang <wangwulin@huawei.com>
Tue, 24 Jan 2017 05:16:10 +0000 (05:16 +0000)
committerLinda Wang <wangwulin@huawei.com>
Tue, 24 Jan 2017 07:34:32 +0000 (07:34 +0000)
Three shell scripts (dmz.sh, smtp_ingress.sh and reserved_subnet.sh)
are needed when executing "run.sh" where relative path of the three scripts
is specified. Those three shell scripts are also located in /home/opnfv/copper/tests,
so it is necessary to change to this dir before executing "run.sh".

JIRA: FUNCTEST-691

Change-Id: I8571e3403d31e9eede8c4eab79b49f721199cdf9
Signed-off-by: Linda Wang <wangwulin@huawei.com>
functest/opnfv_tests/features/copper.py

index a10364e..735b315 100755 (executable)
@@ -22,4 +22,4 @@ class Copper(base.FeatureBase):
         super(Copper, self).__init__(project='copper',
                                      case='copper-notification',
                                      repo='dir_repo_copper')
-        self.cmd = 'bash %s/tests/run.sh' % self.repo
+        self.cmd = 'cd %s/tests && bash run.sh && cd -' % self.repo