From aa065aa24e5f17107faf2abacaf045b19b308343 Mon Sep 17 00:00:00 2001 From: proddy Date: Wed, 6 Nov 2024 20:34:15 +0100 Subject: [PATCH] add test to change locale --- src/test/test.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/test/test.cpp b/src/test/test.cpp index c71d0bd12..03854c796 100644 --- a/src/test/test.cpp +++ b/src/test/test.cpp @@ -307,7 +307,15 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const } shell.printfln("Testing Adding a device (product_id %d), with all values...", id2); test("add", id1, id2); - shell.invoke_command("show values"); + shell.invoke_command("show devices"); + ok = true; + } + + // set the language + if (command == "locale") { + shell.printfln("Testing setting locale to %s", id1_s.c_str()); + EMSESP::system_.locale(id1_s.c_str()); + shell.invoke_command("show"); ok = true; }