random: fix password recipe when using storage-path and passwd
As discussed on bb841a7b (comment 219278) when using storage-path and passwd option, the storage file could not be updated to the new format because of AttributeError _needs_migration. This changes to no longer try to detect if the storage needs migration, but just compare the expected content of the storage file during install and overwrite the file if it is different. This new approach also fix a behavior that re-running buildout with storage-path option and a different passwd option did not update the storage file. Now it is also updated. ( this also fixes a potential encoding problem on py2 )
Status | Job ID | Name | Coverage | ||||||
---|---|---|---|---|---|---|---|---|---|
External | |||||||||
passed |
#722780
external
|
Cloudooo.UnitTest-Master |
00:20:54
|
||||||
passed |
#722799
external
|
ERP5.StandaloneDeploymentScriptTest-Debian.Buster |
00:38:47
|
||||||
passed |
#722809
external
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:37:13
|
||||||
failed |
#722785
external
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:43:55
|
||||||
passed |
#722806
external
|
SlapOS.Eggs.UnitTest-Master.Python3Next |
00:28:41
|
||||||
passed |
#722778
external
|
SlapOS.Theia.ResilienceTest-Master-ERP5 |
12:15:56
|
||||||
passed |
#722803
external
|
Wendelin.StandaloneDeploymentScriptTest-Debian.Buster |
00:39:08
|
||||||