This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit f43701c7c9a1d03c9046407e14b270d30bed77fd
Author: Michal Lenc <[email protected]>
AuthorDate: Tue Oct 17 22:57:12 2023 +0200

    ci: fix file system CI test
    
    File system CI test was not testing the correct behavior of scanf and just
    checked whether program did not end with hard fault. This adds
    functionality check and required configuration options to run FS test.
    
    Signed-off-by: Michal Lenc <[email protected]>
---
 boards/sim/sim/sim/configs/citest/defconfig | 1 +
 tools/ci/testrun/script/test_os/test_os.py  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/boards/sim/sim/sim/configs/citest/defconfig 
b/boards/sim/sim/sim/configs/citest/defconfig
index 8292eb1f7c..6d59280f63 100644
--- a/boards/sim/sim/sim/configs/citest/defconfig
+++ b/boards/sim/sim/sim/configs/citest/defconfig
@@ -83,6 +83,7 @@ CONFIG_SYSTEM_POPEN=y
 CONFIG_TESTING_CXXTEST=y
 CONFIG_TESTING_FOPENCOOKIE_TEST=y
 CONFIG_TESTING_FSTEST=y
+CONFIG_TESTING_FSTEST_MOUNTPT="/tmp"
 CONFIG_TESTING_GETPRIME=y
 CONFIG_TESTING_MM=y
 CONFIG_TESTING_OSTEST=y
diff --git a/tools/ci/testrun/script/test_os/test_os.py 
b/tools/ci/testrun/script/test_os/test_os.py
index 6f25c59a05..c25bd8ba3d 100644
--- a/tools/ci/testrun/script/test_os/test_os.py
+++ b/tools/ci/testrun/script/test_os/test_os.py
@@ -52,7 +52,7 @@ def test_fs_test(p):
         pytest.skip("unsupported at {}".format(p.board))
     fstest_dir = "{}/{}_fstest".format(p.fs, p.core)
     p.sendCommand("mkdir %s" % fstest_dir)
-    ret = p.sendCommand("fstest -n 10 -m %s" % fstest_dir, "Final memory 
usage", 2000)
+    ret = p.sendCommand("fstest -n 10 -m %s" % fstest_dir, "FAILED: 0", 2000)
     p.sendCommand("ls %s" % fstest_dir)
     p.sendCommand("rmdir %s" % fstest_dir)
     assert ret == 0

Reply via email to