Rework using https://pagure.io/modularity-testing-framework/blob/master/f/moduleframework/module_framework.py#_153 to allow using commands like:
self.run("su - usertest -c 'touch ~/testfile.txt'") actually it tracebacks, should work with ' and also with "
self.run("su - usertest -c 'touch ~/testfile.txt'")
self.run should be called like:
cat << EOF | docker exec -i aaa bash > adduser test > su test -c "ls -alh ~" > su test -c 'ls -alh ~' > EOF
it has to be fifed in both helpers: also here: https://pagure.io/modularity-testing-framework/blob/master/f/moduleframework/module_framework.py#_220
Metadata Update from @jscotka: - Issue assigned to jscotka
solved by commit: https://pagure.io/modularity-testing-framework/c/122ce35cd8c31ac9eb414e9bbaefd71e9dcf14a7
actually it works well, I'll create ticker to be able use aexpect for more complex scenarios in this library
Metadata Update from @jscotka: - Issue status updated to: Closed (was: Open)