using test booleans
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit

This commit is contained in:
Robin Müller 2022-01-15 13:09:33 +01:00
parent e73dc2f191
commit a706f6d9bd
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
2 changed files with 16 additions and 3 deletions

View File

@ -22,11 +22,18 @@
#include <cstdio>
Q7STestTask::Q7STestTask(object_id_t objectId): TestTask(objectId) {
doTestSdCard = false;
doTestScratchApi = false;
doTestGps = false;
}
ReturnValue_t Q7STestTask::performOneShotAction() {
//testSdCard();
//testScratchApi();
if (doTestSdCard) {
testSdCard();
}
if (doTestScratchApi) {
testScratchApi();
}
//testJsonLibDirect();
//testDummyParams();
//testProtHandler();
@ -36,7 +43,9 @@ ReturnValue_t Q7STestTask::performOneShotAction() {
}
ReturnValue_t Q7STestTask::performPeriodicAction() {
testGpsDaemon();
if(doTestGps) {
testGpsDaemon();
}
return TestTask::performPeriodicAction();
}

View File

@ -9,6 +9,10 @@ public:
ReturnValue_t initialize() override;
private:
bool doTestSdCard = false;
bool doTestScratchApi = false;
bool doTestGps = false;
CoreController* coreController = nullptr;
ReturnValue_t performOneShotAction() override;
ReturnValue_t performPeriodicAction() override;