Repository navigation
Commit c64ea20
committed
test(cli): pin that
On 0.9.0, `update -y` in a non-interactive shell auto-confirmed "Delete
these indexes and continue with update?", removed every project index,
and only then failed at the ui/standard variant chooser: no new binary
and no indexes. The behaviour is already gone on main: 9ecabe0 moved
self-update out of the product, so a release `update` only hands off to
install.sh; install.sh runs `install -y --force`, which keeps existing
indexes unless the user passes the explicit --reset-indexes (DeusData#607); and
the variant chooser is gone, with --ui/--standard accepted as no-ops
(DeusData#1544). The only coverage of the hand-off was a Windows-only test that
checks the binary, not the indexes.
Add a portable regression test that drives the exact release dispatch
(activation seam off) with `update -y` and `update -y --standard`
against an isolated HOME/CBM_CACHE_DIR holding three .db indexes, and
asserts exit 0 with every index byte-for-byte intact. A generic -y must
never be read as consent to delete indexes. Re-injecting the 0.9.0
prompt-then-delete step into the hand-off turns it RED (kept == 0).
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>update -y never deletes project indexes (DeusData#2200)1 parent 64c23fa commit c64ea20
1 file changed
Lines changed: 55 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16134 | 16134 | | |
16135 | 16135 | | |
16136 | 16136 | | |
| 16137 | + | |
| 16138 | + | |
| 16139 | + | |
| 16140 | + | |
| 16141 | + | |
| 16142 | + | |
| 16143 | + | |
| 16144 | + | |
| 16145 | + | |
| 16146 | + | |
| 16147 | + | |
| 16148 | + | |
| 16149 | + | |
| 16150 | + | |
| 16151 | + | |
| 16152 | + | |
| 16153 | + | |
| 16154 | + | |
| 16155 | + | |
| 16156 | + | |
| 16157 | + | |
| 16158 | + | |
| 16159 | + | |
| 16160 | + | |
| 16161 | + | |
| 16162 | + | |
| 16163 | + | |
| 16164 | + | |
| 16165 | + | |
| 16166 | + | |
| 16167 | + | |
| 16168 | + | |
| 16169 | + | |
| 16170 | + | |
| 16171 | + | |
| 16172 | + | |
| 16173 | + | |
| 16174 | + | |
| 16175 | + | |
| 16176 | + | |
| 16177 | + | |
| 16178 | + | |
| 16179 | + | |
| 16180 | + | |
| 16181 | + | |
| 16182 | + | |
| 16183 | + | |
| 16184 | + | |
| 16185 | + | |
| 16186 | + | |
| 16187 | + | |
| 16188 | + | |
| 16189 | + | |
| 16190 | + | |
16137 | 16191 | | |
16138 | 16192 | | |
16139 | 16193 | | |
| |||
16146 | 16200 | | |
16147 | 16201 | | |
16148 | 16202 | | |
| 16203 | + | |
16149 | 16204 | | |
16150 | 16205 | | |
16151 | 16206 | | |
| |||
0 commit comments