From fef9f11a961d8f38fe1a27565cfdff81274627e1 Mon Sep 17 00:00:00 2001 From: Aleksander Mistewicz Date: Fri, 18 Nov 2016 11:20:28 +0100 Subject: Replace `tree' with `ls' in tests Change-Id: Ibd95744e15813b2db4a4a68c4cb80793d57f3d24 Signed-off-by: Aleksander Mistewicz --- tct/run/common_test.py | 2 +- tct/run/smoke_tests.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tct') diff --git a/tct/run/common_test.py b/tct/run/common_test.py index 65c5e40..6f191c9 100755 --- a/tct/run/common_test.py +++ b/tct/run/common_test.py @@ -189,7 +189,7 @@ class CommonTest(Test): def crash_test(self): self.log.debug("crash_test") - ret = self.comm.run(["tree", "-L", "2", "/opt/usr/share/crash"]) + ret = self.comm.run(["ls", "/opt/usr/share/crash/dump"]) self.assertTrue(ret.wait() == 0, "Command failed") out = ret.stdout.read() # Save to whiteboard diff --git a/tct/run/smoke_tests.sh b/tct/run/smoke_tests.sh index 905382e..e5a362f 100755 --- a/tct/run/smoke_tests.sh +++ b/tct/run/smoke_tests.sh @@ -30,7 +30,7 @@ sleep 10 AFTER="$(journalctl | wc -l)" JOURNAL_DIFF_CNT="$((AFTER - BEFORE))" echo "Lines in journal (growth in last 10s): $AFTER ($JOURNAL_DIFF_CNT)" -tree -L 2 "${OPT_CRASH_PATH}" +ls "${OPT_CRASH_PATH}"/* journalctl -p err | cat echo SERVICES_FAIL_CNT "$(grep -c "failed" "$SYS_RESULT_TMP")" -- cgit v1.2.3