azure: Update for python3 and current pytest
[oweals/u-boot.git] / test / time_ut.c
index 6b52245d7ffa55f9b3c453d2a078c2da93c67a01..28c934e426820b5c90acd4ef95cef7c0e259a1e1 100644 (file)
@@ -1,7 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (c) 2015 Google, Inc
  * Written by Simon Glass <sjg@chromium.org>
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -116,7 +116,7 @@ static int test_udelay(void)
        return 0;
 }
 
-static int do_ut_time(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_ut_time(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
        int ret = 0;
 
@@ -129,9 +129,3 @@ static int do_ut_time(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
        return ret ? CMD_RET_FAILURE : CMD_RET_SUCCESS;
 }
-
-U_BOOT_CMD(
-       ut_time,        1,      1,      do_ut_time,
-       "Very basic test of time functions",
-       ""
-);