diff mbox series

tests/qtest: Reduce npcm7xx_sdhci test image size

Message ID 20220609214125.4192212-1-wuhaotsh@google.com (mailing list archive)
State New, archived
Headers show
Series tests/qtest: Reduce npcm7xx_sdhci test image size | expand

Commit Message

Hao Wu June 9, 2022, 9:41 p.m. UTC
Creating 1GB image for a simple qtest is unnecessary
and could lead to failures. We reduce the image size
to 1MB to reduce the test overhead.

Signed-off-by: Hao Wu <wuhaotsh@google.com>
---
 tests/qtest/npcm7xx_sdhci-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Peter Maydell June 10, 2022, 12:53 p.m. UTC | #1
On Thu, 9 Jun 2022 at 22:41, Hao Wu <wuhaotsh@google.com> wrote:
>
> Creating 1GB image for a simple qtest is unnecessary
> and could lead to failures. We reduce the image size
> to 1MB to reduce the test overhead.
>
> Signed-off-by: Hao Wu <wuhaotsh@google.com>
> ---
>  tests/qtest/npcm7xx_sdhci-test.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)



Applied to target-arm.next, thanks.

-- PMM
Philippe Mathieu-Daudé June 10, 2022, 1:10 p.m. UTC | #2
On 9/6/22 23:41, Hao Wu wrote:
> Creating 1GB image for a simple qtest is unnecessary
> and could lead to failures. We reduce the image size
> to 1MB to reduce the test overhead.
> 
> Signed-off-by: Hao Wu <wuhaotsh@google.com>
> ---
>   tests/qtest/npcm7xx_sdhci-test.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
diff mbox series

Patch

diff --git a/tests/qtest/npcm7xx_sdhci-test.c b/tests/qtest/npcm7xx_sdhci-test.c
index aa35a77e8d..5d68540e52 100644
--- a/tests/qtest/npcm7xx_sdhci-test.c
+++ b/tests/qtest/npcm7xx_sdhci-test.c
@@ -24,7 +24,7 @@ 
 #define NPCM7XX_REG_SIZE 0x100
 #define NPCM7XX_MMC_BA 0xF0842000
 #define NPCM7XX_BLK_SIZE 512
-#define NPCM7XX_TEST_IMAGE_SIZE (1 << 30)
+#define NPCM7XX_TEST_IMAGE_SIZE (1 << 20)
 
 char *sd_path;