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.
This commit is contained in:
Lorenz Meier
2021-01-15 10:57:20 -05:00
committed by Daniel Agar
parent 03e9e10847
commit a282f3df8d
+4 -1
View File
@@ -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;
}