mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
2b9b262357
The test_run unit tests end result when a command is not found. When _run() is called without setting cwd, it will use the home directory as working directory. When the home directory does not exist, the unit test will fail: Traceback (most recent call last): File "tests/unit/modules/test_cmdmod.py", line 231, in test_run ret = cmdmod._run('foo', use_vt=True).get('stderr') File "salt/modules/cmdmod.py", line 536, in _run .format(cwd) salt.exceptions.CommandExecutionError: Specified cwd '/sbuild-nonexistent' either not absolute or does not exist Therefore set cwd to the current directory since the working directory is not used in this test case. This fixes one failing test of #45627. Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com> |
||
---|---|---|
.. | ||
integration | ||
perf | ||
pkg/rpm | ||
support | ||
unit | ||
utils | ||
__init__.py | ||
buildpackage.py | ||
committer_parser.py | ||
conftest.py | ||
consist.py | ||
eventlisten.py | ||
eventlisten.sh | ||
jenkins.py | ||
minionswarm.py | ||
modparser.py | ||
packdump.py | ||
runtests.py | ||
salt-tcpdump.py | ||
saltsh.py | ||
wheeltest.py | ||
whitelist.txt | ||
zypp_plugin.py |