diff --git a/test/version-spec.sh b/test/version-spec.sh index c4ccf1d..76b54b8 100755 --- a/test/version-spec.sh +++ b/test/version-spec.sh @@ -5,29 +5,29 @@ $DUB add-local "$CURR_DIR/version-spec/newfoo" $DUB add-local "$CURR_DIR/version-spec/oldfoo" -[[ $($DUB describe foo | grep path | head -1) == *"/newfoo/"* ]] -[[ $($DUB describe foo@1.0.0 | grep path | head -1) == *"/newfoo/"* ]] -[[ $($DUB describe foo@0.1.0 | grep path | head -1) == *"/oldfoo/"* ]] +[[ $($DUB describe foo | grep path | head -n 1) == *"/newfoo/"* ]] +[[ $($DUB describe foo@1.0.0 | grep path | head -n 1) == *"/newfoo/"* ]] +[[ $($DUB describe foo@0.1.0 | grep path | head -n 1) == *"/oldfoo/"* ]] -[[ $($DUB test foo | head -1) == *"/newfoo/" ]] -[[ $($DUB test foo@1.0.0 | head -1) == *"/newfoo/" ]] -[[ $($DUB test foo@0.1.0 | head -1) == *"/oldfoo/" ]] +[[ $($DUB test foo | head -n 1) == *"/newfoo/" ]] +[[ $($DUB test foo@1.0.0 | head -n 1) == *"/newfoo/" ]] +[[ $($DUB test foo@0.1.0 | head -n 1) == *"/oldfoo/" ]] -[[ $($DUB lint foo | tail -1) == *"/newfoo/" ]] -[[ $($DUB lint foo@1.0.0 | tail -1) == *"/newfoo/" ]] -[[ $($DUB lint foo@0.1.0 | tail -1) == *"/oldfoo/" ]] +[[ $($DUB lint foo | tail -n 1) == *"/newfoo/" ]] +[[ $($DUB lint foo@1.0.0 | tail -n 1) == *"/newfoo/" ]] +[[ $($DUB lint foo@0.1.0 | tail -n 1) == *"/oldfoo/" ]] -[[ $($DUB generate cmake foo | head -1) == *"/newfoo/" ]] -[[ $($DUB generate cmake foo@1.0.0 | head -1) == *"/newfoo/" ]] -[[ $($DUB generate cmake foo@0.1.0 | head -1) == *"/oldfoo/" ]] +[[ $($DUB generate cmake foo | head -n 1) == *"/newfoo/" ]] +[[ $($DUB generate cmake foo@1.0.0 | head -n 1) == *"/newfoo/" ]] +[[ $($DUB generate cmake foo@0.1.0 | head -n 1) == *"/oldfoo/" ]] -[[ $($DUB build -n foo | head -1) == *"/newfoo/" ]] -[[ $($DUB build -n foo@1.0.0 | head -1) == *"/newfoo/" ]] -[[ $($DUB build -n foo@0.1.0 | head -1) == *"/oldfoo/" ]] +[[ $($DUB build -n foo | head -n 1) == *"/newfoo/" ]] +[[ $($DUB build -n foo@1.0.0 | head -n 1) == *"/newfoo/" ]] +[[ $($DUB build -n foo@0.1.0 | head -n 1) == *"/oldfoo/" ]] -[[ $($DUB run -n foo | tail -1) == 'new-foo' ]] -[[ $($DUB run -n foo@1.0.0 | tail -1) == 'new-foo' ]] -[[ $($DUB run -n foo@0.1.0 | tail -1) == 'old-foo' ]] +[[ $($DUB run -n foo | tail -n 1) == 'new-foo' ]] +[[ $($DUB run -n foo@1.0.0 | tail -n 1) == 'new-foo' ]] +[[ $($DUB run -n foo@0.1.0 | tail -n 1) == 'old-foo' ]] $DUB remove-local "$CURR_DIR/version-spec/newfoo" $DUB remove-local "$CURR_DIR/version-spec/oldfoo"