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/kb_8042.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/kb_8042.c') diff --git a/test/kb_8042.c b/test/kb_8042.c index 64f5bd952b..9705b506fe 100644 --- a/test/kb_8042.c +++ b/test/kb_8042.c @@ -323,7 +323,7 @@ static int test_vivaldi_top_keys(void) return EC_SUCCESS; } -void run_test(void) +void run_test(int argc, char **argv) { test_reset(); wait_for_task_started(); -- cgit v1.2.1