Skip to content

Commit

Permalink
Simplify cli tests (run.sh)
Browse files Browse the repository at this point in the history
  • Loading branch information
jez committed May 16, 2020
1 parent 079acfa commit 700d0bc
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ fixture_tests(
)

cli_tests(
input_files = glob(["cli/**/*.sh"])
input_files = glob(["cli/**/run.sh"])
)

test_suite(
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions test/run_and_diff_one.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

set -euo pipefail

script="$1"
expect="$2"

diff -u "$expect" <("$script")

0 comments on commit 700d0bc

Please sign in to comment.