mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-08-25 15:36:19 +00:00
5ff46653cf
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>
19 lines
406 B
Bash
Executable File
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
|
|
|
|
}
|