This commit is contained in:
@ -1,10 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
setup_file(){
|
||||
load "$PWD/tests/integration/helpers/common"
|
||||
_common_setup
|
||||
_ensure_catalogue
|
||||
}
|
||||
|
||||
setup() {
|
||||
load "$PWD/tests/integration/helpers/common"
|
||||
_common_setup
|
||||
}
|
||||
|
||||
|
||||
@test "recipe versions" {
|
||||
run $ABRA recipe versions gitea
|
||||
assert_success
|
||||
@ -12,11 +19,9 @@ setup() {
|
||||
}
|
||||
|
||||
@test "local tags used if no catalogue entry" {
|
||||
latestRelease=$(git -C "$ABRA_DIR/recipes/$TEST_RECIPE" tag -l | tail -n 1)
|
||||
|
||||
run $ABRA recipe versions "$TEST_RECIPE"
|
||||
assert_success
|
||||
assert_output --partial "$latestRelease"
|
||||
assert_output --partial "$(_latest_release)"
|
||||
}
|
||||
|
||||
@test "versions listed in correct order" {
|
||||
|
Reference in New Issue
Block a user