diff --git a/test/version-spec.sh b/test/version-spec.sh index 8d0677f..498d59f 100755 --- a/test/version-spec.sh +++ b/test/version-spec.sh @@ -16,21 +16,21 @@ [[ $($DUB describe foo@'*' | grep path | head -n 1) == *"/newfoo/"* ]] [[ $($DUB describe foo@'>0.0.1 <2.0.0' | grep path | head -n 1) == *"/newfoo/"* ]] -[[ $($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 test foo | tail -n +1 | head -n 1) == *"/newfoo/" ]] +[[ $($DUB test foo@1.0.0 | tail -n +1 | head -n 1) == *"/newfoo/" ]] +[[ $($DUB test foo@0.1.0 | tail -n +1 | head -n 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 -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 generate cmake foo | tail -n +1 | head -n 1) == *"/newfoo/" ]] +[[ $($DUB generate cmake foo@1.0.0 | tail -n +1 | head -n 1) == *"/newfoo/" ]] +[[ $($DUB generate cmake foo@0.1.0 | tail -n +1 | head -n 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 build -n foo | tail -n +1 | head -n 1) == *"/newfoo/" ]] +[[ $($DUB build -n foo@1.0.0 | tail -n +1 | head -n 1) == *"/newfoo/" ]] +[[ $($DUB build -n foo@0.1.0 | tail -n +1 | head -n 1) == *"/oldfoo/" ]] [[ $($DUB run -n foo | tail -n 1) == 'new-foo' ]] [[ $($DUB run -n foo@1.0.0 | tail -n 1) == 'new-foo' ]]