Skip to content

Commit

Permalink
reftests: update lock with upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbou committed Mar 3, 2022
1 parent 2f5989c commit f5581c5
Showing 1 changed file with 16 additions and 30 deletions.
46 changes: 16 additions & 30 deletions tests/reftests/lock.test
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,11 @@ version: "l2"
Now run 'opam upgrade' to apply any package updates.
### opam upgrade --locked
The following actions will be performed:
- recompile tolock l1 (pinned) [upstream or system changes]
- upgrade tolock l1 to l2 (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved tolock.l1 (no changes)
-> removed tolock.l1
-> installed tolock.l1
-> installed tolock.l2
Done.
### <pin:tolock/tolock.opam>
build: [ "false" ]
Expand All @@ -210,27 +209,19 @@ version: "l3"
### opam update tolock

<><> Synchronising development packages <><><><><><><><><><><><><><><><><><><><>
[tolock.l1] synchronised (file://${BASEDIR}/tolock)
[tolock.l2] synchronised (file://${BASEDIR}/tolock)
[tolock] Conflicting update of the metadata from file://${BASEDIR}/tolock.
Override files in ${BASEDIR}/OPAM/locking/.opam-switch/overlay/tolock (there will be a backup)? [Y/n] y
User metadata backed up in ${BASEDIR}/OPAM/backup/tolock.bak
Now run 'opam upgrade' to apply any package updates.
### opam upgrade --locked
The following actions will be performed:
- downgrade tolock l1 to 3 (pinned) [no longer available]
- upgrade tolock l2 to l3 (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] The compilation of tolock.3 failed at "false".




<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build tolock 3
+-
- No changes have been performed
# Return code 31 #
-> removed tolock.l2
-> installed tolock.l3
Done.
### <pin:tolock/tolock.opam>
build: [ "false" ]
version: "4"
Expand All @@ -239,22 +230,17 @@ version: "l4"
### OPAMLOCKED=locked opam update tolock

<><> Synchronising development packages <><><><><><><><><><><><><><><><><><><><>
[tolock.3] synchronised (file://${BASEDIR}/tolock)
[tolock] Installing new package description from upstream file://${BASEDIR}/tolock
[tolock.l3] synchronised (file://${BASEDIR}/tolock)
[tolock] Conflicting update of the metadata from file://${BASEDIR}/tolock.
Override files in ${BASEDIR}/OPAM/locking/.opam-switch/overlay/tolock (there will be a backup)? [Y/n] y
User metadata backed up in ${BASEDIR}/OPAM/backup/tolock.bak
Now run 'opam upgrade' to apply any package updates.
### opam upgrade
The following actions will be performed:
- downgrade tolock l1 to 4 (pinned) [no longer available]
- upgrade tolock l3 to l4 (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] The compilation of tolock.4 failed at "false".




<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build tolock 4
+-
- No changes have been performed
# Return code 31 #
-> retrieved tolock.l4 (file://${BASEDIR}/tolock)
-> removed tolock.l3
-> installed tolock.l4
Done.

0 comments on commit f5581c5

Please # to comment.