diff --git a/README.rst b/README.rst index 34a183ad58fbe7885dd7b5b86002a93961f7abbe..06fb1d664e0ac8ddbe0ea61703cdc273cea719e6 100644 --- a/README.rst +++ b/README.rst @@ -32,7 +32,7 @@ To install the dependencies: .. code:: shell - ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) + ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles To run the full test suite: diff --git a/ansible.cfg b/ansible.cfg index e9ff55d11e12f188e2f551060e6d149e870a10bd..e25faf88e352637000b5dcdc5fca9e0b81a0883f 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,6 +1,6 @@ [defaults] host_key_checking = False retry_files_enabled = False -roles_path = .molecule/roles:../ +roles_path = roles:../../ command_warnings = True deprecation_warnings = True diff --git a/tests/test_example.py b/tests/test_example.py index 9cabf2420fa3923bf417ecdafbe499552ce5c530..a38c7bad4a16b5cd6a5e071ede073a10c7694154 100644 --- a/tests/test_example.py +++ b/tests/test_example.py @@ -1,2 +1,6 @@ def test_example(Command): assert Command('uname').rc == 0 + +def test_root(Command, Sudo): + with Sudo(): + assert Command('whoami').stdout == 'root'