salt/tests
Benjamin Drung 2b9b262357 Fix unit.modules.test_cmdmod.CMDMODTestCase.test_run
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>
2018-01-23 13:18:18 +01:00
..
integration Merge branch '2017.7.3' into '2017.7' 2018-01-22 11:55:54 -05:00
perf
pkg/rpm
support fix py3 tests 2018-01-05 13:36:08 -07:00
unit Fix unit.modules.test_cmdmod.CMDMODTestCase.test_run 2018-01-23 13:18:18 +01:00
utils Misplaced test. Use tests.support.unit instead. 2017-04-01 14:23:00 +01:00
__init__.py
buildpackage.py Take care of resource leakage on tests 2017-04-04 18:58:20 +01:00
committer_parser.py Fix resource leakage 2017-04-05 23:18:00 +01:00
conftest.py Fix basic stats when the test daemons are not running 2017-04-28 13:36:45 +01:00
consist.py Take care of resource leakage on tests 2017-04-04 18:58:20 +01:00
eventlisten.py
eventlisten.sh
jenkins.py Take care of resource leakage on tests 2017-04-04 18:58:20 +01:00
minionswarm.py Take care of resource leakage on tests 2017-04-04 18:58:20 +01:00
modparser.py
packdump.py Take care of resource leakage on tests 2017-04-04 18:58:20 +01:00
runtests.py add additional parser argument for ssh integration tests 2017-11-10 10:58:38 -05:00
salt-tcpdump.py Take care of resource leakage on tests 2017-04-04 18:58:20 +01:00
saltsh.py
wheeltest.py
whitelist.txt Add back the two loader tests 2017-04-17 14:04:20 -06:00
zypp_plugin.py Pylint fixes 2017-06-21 10:09:11 +01:00