[PATCH 07/26] lib: fwts_framework: remove fw parameter from fwts_framework_test_find
Keng-Yu Lin
kengyu at canonical.com
Wed Oct 17 07:40:59 UTC 2012
On Mon, Oct 15, 2012 at 4:31 AM, Colin King <colin.king at canonical.com> wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> We don't need the fw parameter in fwts_framework_test_find so remove
> it.
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
> src/lib/src/fwts_framework.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/lib/src/fwts_framework.c b/src/lib/src/fwts_framework.c
> index 8637882..075a652 100644
> --- a/src/lib/src/fwts_framework.c
> +++ b/src/lib/src/fwts_framework.c
> @@ -636,7 +636,7 @@ static void fwts_framework_tests_run(fwts_framework *fw, fwts_list *tests_to_run
> * fwts_framework_test_find()
> * find a named test, return test if found, NULL otherwise
> */
> -static fwts_framework_test *fwts_framework_test_find(fwts_framework *fw, const char *name)
> +static fwts_framework_test *fwts_framework_test_find(const char *name)
> {
> fwts_list_link *item;
>
> @@ -826,7 +826,7 @@ static int fwts_framework_skip_test_parse(fwts_framework *fw, const char *arg, f
> fwts_framework_test *test;
>
> for (str = (char*)arg; (token = strtok_r(str, ",", &saveptr)) != NULL; str = NULL) {
> - if ((test = fwts_framework_test_find(fw, token)) == NULL) {
> + if ((test = fwts_framework_test_find(token)) == NULL) {
> fprintf(stderr, "No such test '%s'\n", token);
> return FWTS_ERROR;
> } else
> @@ -1171,7 +1171,7 @@ int fwts_framework_args(const int argc, char **argv)
> if (*argv[i] == '-')
> continue;
>
> - if ((test = fwts_framework_test_find(fw, argv[i])) == NULL) {
> + if ((test = fwts_framework_test_find(argv[i])) == NULL) {
> fprintf(stderr, "No such test '%s', available tests:\n",argv[i]);
> fwts_framework_show_tests_brief();
> ret = FWTS_ERROR;
> --
> 1.7.10.4
>
Acked-by: Keng-Yu Lin <kengyu at canonical.com>
More information about the fwts-devel
mailing list