Skip to content

Commit

Permalink
Fix the order of trapping signal
Browse files Browse the repository at this point in the history
  • Loading branch information
na4zagin3 authored Apr 10, 2022
1 parent a01f6fc commit 6b94363
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/testcases/test-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

test_satysfi_pkgs () {
command satysfi --version >/dev/null 2>&1 || return $?

PKGS="$(mktemp)"
trap 'rm -- "$PKGS"' EXIT

SATYROGRAPHOS_EXPERIMENTAL=1 satyrographos library-opam list 2>/dev/null >"$PKGS"
[[ 0 -eq "$( printf "%s\n" "$@" | sort - <"$PKGS" <"$PKGS" | uniq -u | wc -l)" ]]

trap 'rm "$PKGS"' 0
}

test_omake () {
Expand Down

0 comments on commit 6b94363

Please sign in to comment.