mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 08:30:47 -09:00
support/testing: test_dos2unix.py: use assertRunNotOk()
Use the helper to simplify the test. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
@@ -32,8 +32,7 @@ class TestDos2Unix(infra.basetest.BRTest):
|
||||
self.assertRunOk("unix2dos -n original.txt dos.txt")
|
||||
|
||||
# DOS file is expected to be different than the UNIX file
|
||||
_, exit_code = self.emulator.run("cmp original.txt dos.txt")
|
||||
self.assertNotEqual(exit_code, 0)
|
||||
self.assertRunNotOk("cmp original.txt dos.txt")
|
||||
|
||||
# The "cat -A" command should print '^M$' for CR-LF
|
||||
self.assertRunOk("cat -A dos.txt | grep -Fq '^M$'")
|
||||
|
||||
Reference in New Issue
Block a user