[riot-notifications] [RIOT-OS/RIOT] tests/riotboot/flashwrite: add automatic test (#15559)

Alexandre Abadie notifications at github.com
Tue Jun 1 13:50:44 CEST 2021


@aabadie commented on this pull request.



> +    (void)argc;
+    (void)argv;
+    /* Sometimes, udhcp output messes up the following printfs.  That
+     * confuses the test script. As a workaround, just disable interrupts
+     * for a while.
+     */
+    unsigned state = irq_disable();
+    printf("Running from slot %d\n", riotboot_slot_current());
+    irq_restore(state);
+    return 0;
+}
+
+static int cmd_riotboot_invalidate(int argc, char **argv)
+{
+    if (argc < 2) {
+        printf("usage: riotboot-invalidate <slot number>");

```suggestion
        puts("usage: riotboot-invalidate <slot number>");
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15559#pullrequestreview-672975123
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210601/9c8d21b2/attachment.htm>


More information about the notifications mailing list