-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsimple_commands.yaml
39 lines (34 loc) · 941 Bytes
/
simple_commands.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: "Simple commands"
cases:
- name: "Simple command"
stdin: |
echo 1
- name: "Simple command with reserved word args"
stdin: |
echo then
- name: "Command that's a directory"
ignore_stderr: true
stdin: |
mkdir test-dir
./test-dir
echo "Result: $?"
- name: "Non-existent command"
ignore_stderr: true
stdin: |
./non-existent-command
echo "Result: $?"
- name: "Redirection of errors"
stdin: |
./non-existent-command 2>/dev/null
echo "Result: $?"
- name: "Simple command with non-existent cwd"
# N.B. We intentionally fail here because there's no safe way to pick an
# alternate working directory that we are okay with. To our knowledge,
# there's no easy way to hold onto the current working directory past
# its deletion.
known_failure: true
stdin: |
mkdir test-dir
cd test-dir
rmdir $(pwd)
ls