From 99434726be49517332272752af6dffefdea7bb8a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 19 May 2020 14:05:12 -0700 Subject: test: Pass commandline arguments to run_test run_test is called by the "runtest" console command. Console commands can take arguments, so pass along the arguments to run_test to allow parameters to be passed to run_test. The following command was used for automatic replacement: git grep --name-only 'void run_test(void)' |\ xargs sed -i 's#void run_test(void)#void run_test(int argc, char **argv)##' BRANCH=none BUG=b:155897971 TEST=make buildall -j TEST=Build and flash flash_write_protect test > runtest 1 Signed-off-by: Tom Hughes Change-Id: Ib20b955d5ec6b98f525c94c24aadefd7a6a320a5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2209418 Reviewed-by: Yicheng Li Commit-Queue: Yicheng Li Tested-by: Yicheng Li --- test/compile_time_macros.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/compile_time_macros.c') diff --git a/test/compile_time_macros.c b/test/compile_time_macros.c index 9ef52bc7e3..40e962e101 100644 --- a/test/compile_time_macros.c +++ b/test/compile_time_macros.c @@ -55,7 +55,7 @@ static int test_GENMASK_ULL(void) return EC_SUCCESS; } -void run_test(void) +void run_test(int argc, char **argv) { test_reset(); -- cgit v1.2.1