mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 16:20:03 +02:00
fix m3 tests
This commit is contained in:
parent
4614e0873a
commit
8f68e395bd
@ -40,8 +40,10 @@ TEST_CASE("savepattern", "[.cmd]") {
|
|||||||
det_type == defs::MYTHEN3) {
|
det_type == defs::MYTHEN3) {
|
||||||
REQUIRE_THROWS(
|
REQUIRE_THROWS(
|
||||||
proxy.Call("savepattern", {"/tmp/pattern.txt"}, -1, GET));
|
proxy.Call("savepattern", {"/tmp/pattern.txt"}, -1, GET));
|
||||||
|
if (det.size() == 1) {
|
||||||
REQUIRE_NOTHROW(
|
REQUIRE_NOTHROW(
|
||||||
proxy.Call("savepattern", {"/tmp/pattern.txt"}, -1, PUT));
|
proxy.Call("savepattern", {"/tmp/pattern.txt"}, -1, PUT));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
REQUIRE_THROWS(
|
REQUIRE_THROWS(
|
||||||
proxy.Call("savepattern", {"/tmp/pattern.txt"}, -1, PUT));
|
proxy.Call("savepattern", {"/tmp/pattern.txt"}, -1, PUT));
|
||||||
|
@ -2302,6 +2302,9 @@ TEST_CASE("scan", "[.cmd]") {
|
|||||||
// auto previous = det.getDAC(ind, false);
|
// auto previous = det.getDAC(ind, false);
|
||||||
// auto notImplementedPrevious = det.getDAC(notImplementedInd, 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;
|
std::ostringstream oss;
|
||||||
proxy.Call("scan", {ToString(ind), "500", "1500", "500"}, -1, PUT, oss);
|
proxy.Call("scan", {ToString(ind), "500", "1500", "500"}, -1, PUT, oss);
|
||||||
@ -2378,6 +2381,7 @@ TEST_CASE("scan", "[.cmd]") {
|
|||||||
// det.setDAC(notImplementedInd, notImplementedPrevious[i], false,
|
// det.setDAC(notImplementedInd, notImplementedPrevious[i], false,
|
||||||
// {i});
|
// {i});
|
||||||
// }
|
// }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("scanerrmsg", "[.cmd]") {
|
TEST_CASE("scanerrmsg", "[.cmd]") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user