Skip to content

Commit

Permalink
Merge pull request #368 from okurz/feature/pipefail
Browse files Browse the repository at this point in the history
os-autoinst-obs-auto-submit: Mark expected failure explicitly
  • Loading branch information
mergify[bot] authored Jan 30, 2025
2 parents fdea7d8 + 2361c48 commit ca25be5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions os-autoinst-obs-auto-submit
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,7 @@ handle_auto_submit() {
$osc co --server-side-source-service-files "$src_project"/"$package"
if [[ "$package" == "os-autoinst-distri-opensuse-deps" ]]; then
$osc cat "$submit_target" "$package" "$package.spec" > "$package-factory.spec"
set +o pipefail
if diff -u "$package"-factory.spec "$src_project/$package/_service:obs_scm:$package".spec | grep "^[+-]Requires"; then
set -o pipefail
if { diff -u "$package"-factory.spec "$src_project/$package/_service:obs_scm:$package".spec || :; } | grep "^[+-]Requires"; then
# dependency added or removed
generate_os-autoinst-distri-opensuse-deps_changelog "$src_project" "$package"
else
Expand Down

0 comments on commit ca25be5

Please sign in to comment.