rpm-ostree/tests/vmcheck
Jonathan Lebon 9e2ceca06f app/deploy: Gate 77 exit behind --unchanged-exit-77
This has a bit of history, but essentially in 1c01141e, we made both
`upgrade` and `deploy` automatically exit 77 if there were no changes.
Then in c3f1e7c8, we only changed `upgrade` so that it became gated
behind `--upgrade-unchanged-exit-77`.

I think we should carry this forward into `deploy` as well. The way I
look at this is: the default UX shouldn't require users to care about
special exit codes. That's something scripts care about. In its vanilla
form, either a command should error out or succeed.

This patch tries to add some consistency by introducing a new
`--unchanged-exit-77` in both `deploy` and `upgrade` (where it just
replaces the previous switch). The naming here matches what `install`
has too.

So... this does break backwards compatibility for any scripts which
relied on that behaviour. Though the only app I know today which wants
deploy semantics and doesn't use the D-Bus API is Zincati, which
actually hit this issue. There's also RHCOS, though the `pivot` there
uses `rebase`, not `deploy`. So overall, I think this is worth breaking
now while we're still in a transitionary period in the downstreams?

Closes: #1906
Approved by: cgwalters
2019-09-24 08:07:04 +00:00
..
fetch-journal.sh vmcheck: prep for parallel runs 2017-03-13 00:42:13 +00:00
install.sh Rebase to latest libdnf 2019-03-19 14:29:15 +00:00
multitest.py tests: Bump to Python 3 only 2019-05-08 19:02:32 +00:00
overlay.sh vmcheck/overlay: Drop dependency on host Python 2019-05-08 19:02:32 +00:00
sync.sh daemon: add RPMOSTREE_DEBUG_DISABLE_DAEMON_IDLE_EXIT 2017-10-12 15:35:44 +00:00
test-autoupdate-check.sh Print CVEs fixed in available updates 2018-12-05 18:56:49 +00:00
test-autoupdate-stage.sh Stabilize stage automatic update policy 2018-08-21 01:01:45 +00:00
test-cached-rpm-diffs.sh tests/vmcheck: Fully drop python 3 requirement 2019-06-10 15:36:06 +00:00
test-db.sh app/db-diff: Add --format=json output 2019-05-23 20:24:11 +00:00
test-download-only.sh app/deploy: Gate 77 exit behind --unchanged-exit-77 2019-09-24 08:07:04 +00:00
test-initramfs.sh Copy used command-line and set as transaction title 2019-05-08 21:09:08 +00:00
test-kernel-args.sh Copy used command-line and set as transaction title 2019-05-08 21:09:08 +00:00
test-layering-basic-1.sh Copy used command-line and set as transaction title 2019-05-08 21:09:08 +00:00
test-layering-basic-2.sh core: Tweak "Importing" messages 2018-11-21 13:54:35 +00:00
test-layering-gpg.sh tests/libvm: use rsync and add yumrepo mode 2017-10-06 18:20:59 +00:00
test-layering-local.sh vmcheck: Store temporary files in /var/tmp instead 2018-09-07 14:20:01 +00:00
test-layering-non-root-caps.sh tests: Don't make system user with differently-named group 2019-02-25 14:21:28 +00:00
test-layering-relabel.sh core: Change relabeling to use libostree's SELinux support 2017-12-08 15:01:32 +00:00
test-layering-relayer.sh tests/vmcheck: turn on strict bash mode 2017-10-02 20:36:07 +00:00
test-layering-rpmdb.sh core: handle shared files and multilib 2018-02-08 21:58:55 +00:00
test-layering-scripts.sh tests/vmcheck: Fully drop python 3 requirement 2019-06-10 15:36:06 +00:00
test-layering-unified.sh Copy used command-line and set as transaction title 2019-05-08 21:09:08 +00:00
test-livefs.sh tests/vmcheck: Fully drop python 3 requirement 2019-06-10 15:36:06 +00:00
test-misc-1.sh tests/vmcheck: Fully drop python 3 requirement 2019-06-10 15:36:06 +00:00
test-misc-2.sh app/deploy: Gate 77 exit behind --unchanged-exit-77 2019-09-24 08:07:04 +00:00
test-override-kernel.sh vmcheck: Adapt test-override-kernel.sh 2019-09-09 23:50:32 +00:00
test-override-local-replace.sh Copy used command-line and set as transaction title 2019-05-08 21:09:08 +00:00
test-override-remove.sh app/status: Group EVRs for RemovedBasePackages if possible 2019-06-18 14:34:13 +00:00
test-override-replace-2.sh Copy used command-line and set as transaction title 2019-05-08 21:09:08 +00:00
test-pinned-commit.sh Handle "pinned commits" specifically 2018-06-11 20:37:58 +00:00
test-reset.sh Copy used command-line and set as transaction title 2019-05-08 21:09:08 +00:00
test-rojig-client.sh vmcheck/test-rojig-client.sh: Don't check full rojig NEVRA 2019-03-19 12:19:38 +00:00
test-upgrades.sh app/deploy: Add --disallow-downgrade switch 2019-08-21 16:43:37 -04:00
test.sh Hard require staging 2018-09-11 20:55:48 +00:00