Skip to content

Commit

Permalink
test: convert more test skips to known failures (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
reubeno authored Sep 30, 2024
1 parent ff3ae55 commit ee0b8e3
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 15 deletions.
1 change: 1 addition & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[profile.default]
retries = 3
status-level = "slow"
slow-timeout = { period = "5s", terminate-after = 3, grace-period = "2s" }

[profile.default.junit]
path = "test-results.xml"
13 changes: 7 additions & 6 deletions brush-shell/tests/cases/builtins/shopt.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
name: "Builtins: shopt"
cases:
- name: "shopt defaults"
skip: true
known_failure: true # TODO: new options from newer version of bash?
stdin: |
shopt | sort | grep -v extglob
- name: "shopt interactive defaults"
skip: true # TODO: Causes problems with cargo nextest
known_failure: true # TODO: new options from newer version of bash?
pty: true
args: ["-i", "-c", "shopt | sort | grep -v extglob"]

- name: "shopt -o defaults"
stdin: |
shopt -o | sort
- name: "shopt -o interactive defaults"
skip: true # TODO: Causes problems with cargo nextest
pty: true
args: ["-i", "-c", "shopt -o | sort | grep -v monitor"]

- name: "extglob defaults"
known_failure: true
known_failure: true # TODO: we force this setting on in our shell
stdin: |
shopt extglob
- name: "extglob interactive defaults"
skip: true # TODO: Causes problems with cargo nextest
pty: true
args: ["-i", "-c", "shopt extglob"]
known_failure: true

- name: "shopt -o interactive monitor default"
skip: true # TODO: Causes problems with cargo nextest
pty: true
args: ["-i", "-c", "shopt -o monitor"]

- name: "shopt toggle"
Expand Down
2 changes: 1 addition & 1 deletion brush-shell/tests/cases/builtins/trap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cases:
trap -p INT
- name: "trap EXIT"
known_failure: true
known_failure: true # TODO: needs triage and debugging
stdin: |
trap "echo [exit]" EXIT
trap -p EXIT
Expand Down
2 changes: 1 addition & 1 deletion brush-shell/tests/cases/builtins/unset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ cases:
declare -p myarray
- name: "Unset array element with interesting expression"
known_failure: true
known_failure: true # TODO: case needs implementing
stdin: |
declare -a myarray=(a b c d e)
Expand Down
4 changes: 2 additions & 2 deletions brush-shell/tests/cases/here.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ cases:
args: ["./script.sh"]

- name: "Here doc with expansions"
known_failure: true
known_failure: true # TODO: needs triage and debugging
stdin: |
cat <<END-MARKER
Something here...
Expand All @@ -21,7 +21,7 @@ cases:
END-MARKER
- name: "Here doc with tab removal"
known_failure: true
known_failure: true # TODO: needs triage and debugging
stdin: |
cat <<-END-MARKER
Something here...
Expand Down
2 changes: 1 addition & 1 deletion brush-shell/tests/cases/options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cases:
echo "Default options: $-"
- name: "set -a"
known_failure: true
known_failure: true # TODO: set -a not implemented
stdin: |
unexported=original
set -a
Expand Down
1 change: 0 additions & 1 deletion brush-shell/tests/cases/redirection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ cases:
cat < <(echo hi)
- name: "Process substitution: output redirection"
skip: true # Periodically fails, possibly due to output race condition.
stdin: |
shopt -u -o posix
echo hi > >(wc -l)
Expand Down
6 changes: 3 additions & 3 deletions brush-shell/tests/cases/word_expansion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ cases:
echo " -> result: $?"
- name: "Parameter expression: error on condition (non-interactive)"
known_failure: true
known_failure: true # TODO: needs triage and debugging
ignore_stderr: true
stdin: |
echo "${non_existent_var?error message}"
Expand Down Expand Up @@ -393,7 +393,7 @@ cases:
done
- name: "Parameter expression: expanded array as default value"
known_failure: true
known_failure: true # TODO: needs triage and debugging
stdin: |
declare -a var=("abc" "def" "ghi" "")
Expand Down Expand Up @@ -694,7 +694,7 @@ cases:
echo "\${arr2@Q}: ${arr2@Q}"
- name: "Parameter quote transformations - K"
known_failure: true
known_failure: true # TODO: needs triage and debugging
stdin: |
var='""'
echo "\${var@K}: ${var@K}"
Expand Down

0 comments on commit ee0b8e3

Please sign in to comment.