fix m3 tests

This commit is contained in:
maliakal_d 2022-12-06 10:52:33 +01:00
parent 4614e0873a
commit 8f68e395bd
2 changed files with 76 additions and 70 deletions

View File

@ -40,8 +40,10 @@ TEST_CASE("savepattern", "[.cmd]") {
det_type == defs::MYTHEN3) {
REQUIRE_THROWS(
proxy.Call("savepattern", {"/tmp/pattern.txt"}, -1, GET));
if (det.size() == 1) {
REQUIRE_NOTHROW(
proxy.Call("savepattern", {"/tmp/pattern.txt"}, -1, PUT));
}
} else {
REQUIRE_THROWS(
proxy.Call("savepattern", {"/tmp/pattern.txt"}, -1, PUT));

View File

@ -2302,6 +2302,9 @@ TEST_CASE("scan", "[.cmd]") {
// auto previous = det.getDAC(ind, false);
// auto notImplementedPrevious = det.getDAC(notImplementedInd, false);
if (det_type == defs::MYTHEN3 && det.size() > 1) {
;// scan only allowed for single module due to sync
} else {
{
std::ostringstream oss;
proxy.Call("scan", {ToString(ind), "500", "1500", "500"}, -1, PUT, oss);
@ -2379,6 +2382,7 @@ TEST_CASE("scan", "[.cmd]") {
// {i});
// }
}
}
TEST_CASE("scanerrmsg", "[.cmd]") {
Detector det;