support/testing: fix trace-cmd runtime test
The trace-cmd runtime test has a typo and fails with output: Traceback (most recent call last): File "/build/buildroot/support/testing/tests/package/test_trace_cmd.py", line 53, in test_run self.assertEquals(exit_code, 0) ^^^^^^^^^^^^^^^^^ AttributeError: 'TestTraceCmd' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'? The issue can be reproduced with the command: support/testing/run-tests \ -d dl -o output_test \ tests.package.test_trace_cmd This commit fixes the issue by removing the extra 's'. Signed-off-by: Julien Olivain <ju.o@free.fr> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
parent
ccb4e5db5c
commit
2f507f1da5
@ -50,5 +50,5 @@ class TestTraceCmd(infra.basetest.BRTest):
|
|||||||
# Check we have occurrences of "kmalloc:" in the trace report.
|
# Check we have occurrences of "kmalloc:" in the trace report.
|
||||||
cmd = "grep -Fc kmalloc: trace.txt"
|
cmd = "grep -Fc kmalloc: trace.txt"
|
||||||
output, exit_code = self.emulator.run(cmd)
|
output, exit_code = self.emulator.run(cmd)
|
||||||
self.assertEquals(exit_code, 0)
|
self.assertEqual(exit_code, 0)
|
||||||
self.assertTrue(int(output[0]) > 0)
|
self.assertTrue(int(output[0]) > 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user