Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wenovus committed Oct 13, 2023
1 parent 36103f4 commit a605d29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd_gen/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ script_options=(
function run-dir() {
declare prefix="$workdir"/"$1"=="$2"==
shift 2
echo pyang "${options[@]}" "$@" > ${prefix}cmd
if ! $($cmd "${options[@]}" "${script_options[@]}" "$@" &> ${prefix}pass); then
echo pyang -W error "${options[@]}" "$@" > ${prefix}cmd
if ! $($cmd -W error "${options[@]}" "${script_options[@]}" "$@" &> ${prefix}pass); then
mv ${prefix}pass ${prefix}fail
fi
}
Expand Down Expand Up @@ -97,8 +97,8 @@ script_options=(
function run-dir() {
declare prefix="$workdir"/"$1"=="$2"==
shift 2
echo pyang "${options[@]}" "$@" > ${prefix}cmd
if ! $($cmd "${options[@]}" "${script_options[@]}" "$@" &> ${prefix}pass); then
echo pyang -W error "${options[@]}" "$@" > ${prefix}cmd
if ! $($cmd -W error "${options[@]}" "${script_options[@]}" "$@" &> ${prefix}pass); then
mv ${prefix}pass ${prefix}fail
fi
}
Expand Down

0 comments on commit a605d29

Please sign in to comment.