mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-05 12:58:53 +08:00
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:
committed by
Daniel Agar
parent
03e9e10847
commit
a282f3df8d
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user