integration tests touch the channel.ini file and the revert can go wrong

Bug #1471935 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
Undecided
Leo Arias

Bug Description

After the integration tests have modified the channel.ini to check some conditions, it is reverted with:

defer switchChannelVersion(c, currentVersion, currentVersion+1)

If for some reason the current version is wrong, then the revert will put a value on channel.ini that's different from the original.

I think a safer way to do it is to save the original .ini file, and then restore it.

Related branches

Leo Arias (elopio)
Changed in snappy:
status: New → In Progress
assignee: nobody → Leo Arias (elopio)
Leo Arias (elopio)
Changed in snappy:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.