diff options
| author | cacharle <me@cacharle.xyz> | 2020-11-13 07:51:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-13 07:51:54 +0100 |
| commit | c0dee8d8943286e5e8788cc0cac4d4ce489327c8 (patch) | |
| tree | 1934dbaf9cbc66fddaa2650d525a40edc54d9875 | |
| parent | d16a0e0a9aaf60aaf2862fec50be10279566ff0d (diff) | |
| download | minishell_test-c0dee8d8943286e5e8788cc0cac4d4ce489327c8.tar.gz minishell_test-c0dee8d8943286e5e8788cc0cac4d4ce489327c8.tar.bz2 minishell_test-c0dee8d8943286e5e8788cc0cac4d4ce489327c8.zip | |
Update README.md
| -rw-r--r-- | README.md | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -127,8 +127,10 @@ In your suite function you can use the `test` function. With the following argum test("echo bonjour je suis") # simple command test("cat < somefile", setup="echo file content > somefile") # setup test("ls > somefile", setup="", files=["somefile"]) # watch a file -test("echo $A", exports={"A": "a"}) # export variables in the environment -test("echo bonjour", hook=lambda s: s.replace("o", "a")) # pass the shell output through a hook function +test("echo $A", exports={"A": "a"}) # export variables + # in the environment +test("echo bonjour", hook=lambda s: s.replace("o", "a")) # pass the shell output + # through a hook function test("cat < somefile > otherfile", setup="echo file content > somefile", |
