From a282f3df8d46e3769e58a6af5a96d9e37bf42985 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 17 Mar 2020 12:15:36 +0100 Subject: [PATCH] CLI test: Disable by default on NuttX First target is to enable this for POSIX tests and then later to roll them out to NuttX. --- src/systemcmds/tests/test_cli.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/systemcmds/tests/test_cli.c b/src/systemcmds/tests/test_cli.c index 337c8428cf..acc68524e8 100644 --- a/src/systemcmds/tests/test_cli.c +++ b/src/systemcmds/tests/test_cli.c @@ -49,7 +49,7 @@ #include "tests_main.h" -#ifdef PX4_NUTTX +#ifdef __PX4_NUTTX #define _px4_system(command) system(command) #else #define _px4_system(command) system("px4-"command) @@ -57,6 +57,7 @@ int test_cli(int argc, char *argv[]) { +#ifndef __PX4_NUTTX // This is not a fully built out test // suite yet and is more of a soak // test to ensure that the command exists @@ -68,5 +69,7 @@ int test_cli(int argc, char *argv[]) if (_px4_system("commander stop")) { return PX4_ERROR; } +#endif + return 0; }