summaryrefslogtreecommitdiffstats
path: root/dovetail/tests/unit/test_run.py
diff options
context:
space:
mode:
authorStamatis Katsaounis <mokats@intracom-telecom.com>2019-03-14 15:00:05 +0200
committerStamatis Katsaounis <mokats@intracom-telecom.com>2019-03-20 07:55:37 +0000
commitf27b1382a87c432487816cfad6e5c341250d16b2 (patch)
tree31c4adf47b4073c0f4e9ed639afeca55a553fd49 /dovetail/tests/unit/test_run.py
parentef2d5282306a277e591aa3c355277c6f158d8e76 (diff)
Improve Dockerfile
This patch improves the Dockerfile which produces the Dovetail image. Change-Id: I65e65f155afe237b11c668e6486e48b55cc7e96c Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
Diffstat (limited to 'dovetail/tests/unit/test_run.py')
-rw-r--r--dovetail/tests/unit/test_run.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/dovetail/tests/unit/test_run.py b/dovetail/tests/unit/test_run.py
index 80b5eca..7f36d31 100644
--- a/dovetail/tests/unit/test_run.py
+++ b/dovetail/tests/unit/test_run.py
@@ -233,7 +233,7 @@ class RunTesting(unittest.TestCase):
mock_os.path.exists.assert_called_once_with('value')
mock_os.path.isdir.assert_called_once_with('value')
mock_utils.exec_cmd.assert_called_once_with(
- 'sudo rm -rf value/*', exit_on_error=False, exec_msg_on=False)
+ 'rm -rf value/*', exit_on_error=False, exec_msg_on=False)
@patch('dovetail.run.dt_utils')
@patch('dovetail.run.dt_cfg')
@@ -302,7 +302,7 @@ class RunTesting(unittest.TestCase):
mock_os.path.isdir.assert_called_once_with('value')
mock_os.makedirs.assert_called_once_with('value')
mock_utils.exec_cmd.assert_called_once_with(
- 'sudo cp -r value/* value', logger, exit_on_error=False)
+ 'cp -r value/* value', logger, exit_on_error=False)
@patch('dovetail.run.constants')
@patch('dovetail.run.dt_cfg')
@@ -320,7 +320,7 @@ class RunTesting(unittest.TestCase):
mock_os.path.isdir.assert_called_once_with('value')
mock_os.makedirs.assert_called_once_with('value')
mock_utils.exec_cmd.assert_called_once_with(
- 'sudo cp -a -r value/* value', logger, exit_on_error=False)
+ 'cp -a -r value/* value', logger, exit_on_error=False)
@patch('dovetail.run.os')
def test_update_deploy_scenario(self, mock_os):