feat: support rpi-sdcard image file type (#1648)

Support the rpi-sdcard image file type output by Yocto for
the Raspberry Pi device.

Change-Id: Ia7e3aef0d90fdf21d373a560e6dd2b96e6b51da8
Changelog-Entry: Add support for `.rpi-sdcard` images.
This commit is contained in:
moragues 2017-08-01 07:34:25 -07:00 committed by Juan Cruz Viotti
parent de62b2e65c
commit 70c79f6127
2 changed files with 5 additions and 1 deletions

View File

@ -72,5 +72,9 @@ module.exports = [
{
extension: 'sdcard',
type: 'image'
},
{
extension: 'rpi-sdimg',
type: 'image'
}
];

View File

@ -35,7 +35,7 @@ describe('Shared: SupportedFormats', function() {
it('should return the supported non compressed extensions', function() {
const extensions = supportedFormats.getNonCompressedExtensions();
m.chai.expect(extensions).to.deep.equal([ 'img', 'iso', 'dsk', 'hddimg', 'raw', 'dmg', 'sdcard' ]);
m.chai.expect(extensions).to.deep.equal([ 'img', 'iso', 'dsk', 'hddimg', 'raw', 'dmg', 'sdcard', 'rpi-sdimg' ]);
});
});