This repository has been archived by the owner on Feb 26, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 723012: fix jetpackID which accidentally changed in 1.4 . r=mhammond
This removes the code in packaging.py which accidentally override the code in __init__.py which converts package.json:id into harness-options.json:jetpackID . The consequence of that override was that a "@jetpack" suffix was not appended when necessary, which caused "jetpackID" to be wrong in 1.4, which caused simple-storage to look in the wrong place for its saved data. This also changes the build_xpi() convenience method (used by a couple tests) to include the id-to-jetpackID conversion step. The lack of that conversion step is what prompted the addition to packaging.py, as it was the quickest way to get the tests to pass at the time. The simple-prefs tests have been enhanced, and new tests were added to assert that the id-to-jetpackID conversion happens properly for both "jid" and "jid@jetpack" (i.e. with and without suffix-adding). Cherry-picked from master: 582a8ea and b1dbb63
- Loading branch information
Showing
7 changed files
with
68 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ "name": "one", | ||
"id": "jid1@jetpack", | ||
"main": "main" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"name": "seven", | ||
"id": "jid1" | ||
"id": "jid7" | ||
} |
5 changes: 4 additions & 1 deletion
5
python-lib/cuddlefish/tests/preferences-files/packages/no-prefs/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
{ | ||
"loader": "lib/main.js" | ||
"id": "jid1-fZHqN9JfrDBa8A", | ||
"fullName": "No Prefs Test", | ||
"author": "Erik Vold", | ||
"loader": "lib/main.js" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters