diff options
author | Michael Abel <info@abel-ikt.de> | 2022-03-02 16:08:27 +0100 |
---|---|---|
committer | Michael Abel <info@abel-ikt.de> | 2022-03-02 16:08:27 +0100 |
commit | 5a2ceb1b8b048d8d07d98182c280d226f04e3bb8 (patch) | |
tree | a73642a4a46c67be89d0a2a2af30ddff0ff1cb88 /tests | |
parent | cd2b844a467db569bd02074bc3b6b2e450f31506 (diff) |
Add stdouterr so that we see where the test fails
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PySys/tedge/tedge_software_update/run.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/PySys/tedge/tedge_software_update/run.py b/tests/PySys/tedge/tedge_software_update/run.py index ff709bd2..5385cdd9 100644 --- a/tests/PySys/tedge/tedge_software_update/run.py +++ b/tests/PySys/tedge/tedge_software_update/run.py @@ -61,13 +61,15 @@ class PySysTest(EnvironmentC8y): # make a new directory `TEDGE_DOWNLOAD_DIR` _ = self.startProcess( command=self.sudo, - arguments=["mkdir", TEDGE_DOWNLOAD_DIR] + arguments=["mkdir", "-p", TEDGE_DOWNLOAD_DIR], + stdouterr="mkdir" ) # give full permission to `TEDGE_DOWNLOAD_DIR` _ = self.startProcess( command=self.sudo, - arguments=["chmod", "a+rwx", TEDGE_DOWNLOAD_DIR] + arguments=["chmod", "a+rwx", TEDGE_DOWNLOAD_DIR], + stdouterr="chmod" ) # 1. save the current/pre-change setting in /Output @@ -108,7 +110,8 @@ class PySysTest(EnvironmentC8y): # removing tedge dir _ = self.startProcess( command=self.sudo, - arguments=["rmdir", TEDGE_DOWNLOAD_DIR] + arguments=["rmdir", TEDGE_DOWNLOAD_DIR], + stdouterr="rmdir" ) return super().cleanup() |