Files
Otavio Pontes 5ff46653cf actions: Create another job to check for API changes
Create another github job to check if the API has been changed in this
PR, so it will be easier to notice that a broken test is just an API
broken test

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2020-05-14 10:45:46 -07:00

19 lines
406 B
Bash
Executable File

#!/usr/bin/env bats
# Author: Castulo Martinez
# Email: castulo.martinez@intel.com
@test "ANL005: swupd --quiet output has not changed" {
run git diff --name-only --exit-code origin/master HEAD test/functional/api/
# shellcheck disable=SC2154
# SC2154: var is referenced but not assigned
if [ "$status" -ne 0 ]; then
echo "The following --quiet tests changed:"
echo "$output"
return 1
fi
}