Skip to content

Commit

Permalink
ci(solr): skip update-fields.sh test for no input if on Github IQSS#7903
Browse files Browse the repository at this point in the history


Inside update-fields.sh we detect if a STDIN is given as a pipe via
testing if FD 0 (stdin) is not attached to a terminal.
This does not work inside a Github Action, so skip this for now till
we see a problem or find a better solution.
  • Loading branch information
poikilotherm committed Oct 5, 2021
1 parent 84aa193 commit d903a6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/shell/spec/update_fields_spec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ Describe "Update fields command"

Describe "reading input"
Describe "fails because"
# Test if $CI is set (always true inside Github Workflow)
detect_github_action() { test -z ${CI:+x}; }

It "throws error when no source given"
Skip if "running on Github Action" detect_github_action
When run update_fields data/solr/minimal-schema.xml
The status should equal 2
The error should include "provide source file or piped input"
Expand Down

0 comments on commit d903a6f

Please sign in to comment.