From 70c79f61279a2b32b4814ff2753b39ff0c30c791 Mon Sep 17 00:00:00 2001 From: moragues Date: Tue, 1 Aug 2017 07:34:25 -0700 Subject: [PATCH] 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. --- lib/image-stream/supported.js | 4 ++++ tests/shared/supported-formats.spec.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/image-stream/supported.js b/lib/image-stream/supported.js index 079a823f..8971c46c 100644 --- a/lib/image-stream/supported.js +++ b/lib/image-stream/supported.js @@ -72,5 +72,9 @@ module.exports = [ { extension: 'sdcard', type: 'image' + }, + { + extension: 'rpi-sdimg', + type: 'image' } ]; diff --git a/tests/shared/supported-formats.spec.js b/tests/shared/supported-formats.spec.js index a86321fe..5b7a51e2 100644 --- a/tests/shared/supported-formats.spec.js +++ b/tests/shared/supported-formats.spec.js @@ -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' ]); }); });