Update buildroot 2020.02.01 (#622)
* Update buildroot 2020.02.01 Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch> * Fix LN * Fix wpa Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch> * Fix lint Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch> * fix-network Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch> * Fix script Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
import infra.basetest
|
||||
|
||||
@@ -15,10 +14,7 @@ CHECK_FS_TYPE_CMD = "mount | grep '/dev/root on / type {}'"
|
||||
|
||||
def dumpe2fs_run(builddir, image):
|
||||
cmd = ["host/sbin/dumpe2fs", os.path.join("images", image)]
|
||||
ret = subprocess.check_output(cmd,
|
||||
stderr=open(os.devnull, "w"),
|
||||
cwd=builddir,
|
||||
env={"LANG": "C"})
|
||||
ret = infra.run_cmd_on_host(builddir, cmd)
|
||||
return ret.strip().splitlines()
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
import infra.basetest
|
||||
|
||||
@@ -29,9 +28,7 @@ class TestF2FS(infra.basetest.BRTest):
|
||||
|
||||
def test_run(self):
|
||||
img = os.path.join(self.builddir, "images", "rootfs.f2fs")
|
||||
out = subprocess.check_output(["host/sbin/dump.f2fs", img],
|
||||
cwd=self.builddir,
|
||||
env={"LANG": "C"})
|
||||
out = infra.run_cmd_on_host(self.builddir, ["host/sbin/dump.f2fs", img])
|
||||
out = out.splitlines()
|
||||
prop = dumpf2fs_getprop(out, "Info: total sectors")
|
||||
self.assertEqual(prop, "262144 (128 MB)")
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
import infra.basetest
|
||||
|
||||
@@ -30,9 +29,8 @@ class TestJffs2(infra.basetest.BRTest):
|
||||
|
||||
def test_run(self):
|
||||
img = os.path.join(self.builddir, "images", "rootfs.jffs2")
|
||||
out = subprocess.check_output(["host/sbin/jffs2dump", "-c", img],
|
||||
cwd=self.builddir,
|
||||
env={"LANG": "C"})
|
||||
cmd = ["host/sbin/jffs2dump", "-c", img]
|
||||
out = infra.run_cmd_on_host(self.builddir, cmd)
|
||||
out = out.splitlines()
|
||||
self.assertTrue(jffs2dump_find_file(out, "busybox"))
|
||||
|
||||
|
||||
@@ -15,9 +15,7 @@ class TestSquashfs(infra.basetest.BRTest):
|
||||
|
||||
def test_run(self):
|
||||
unsquashfs_cmd = ["host/bin/unsquashfs", "-s", "images/rootfs.squashfs"]
|
||||
out = subprocess.check_output(unsquashfs_cmd,
|
||||
cwd=self.builddir,
|
||||
env={"LANG": "C"})
|
||||
out = infra.run_cmd_on_host(self.builddir, unsquashfs_cmd)
|
||||
out = out.splitlines()
|
||||
self.assertEqual(out[0],
|
||||
"Found a valid SQUASHFS 4:0 superblock on images/rootfs.squashfs.")
|
||||
|
||||
@@ -21,10 +21,9 @@ class TestUbi(infra.basetest.BRTest):
|
||||
# To be investigated.
|
||||
def test_run(self):
|
||||
img = os.path.join(self.builddir, "images", "rootfs.ubi")
|
||||
out = subprocess.check_output(["file", img],
|
||||
cwd=self.builddir,
|
||||
env={"LANG": "C"})
|
||||
out = infra.run_cmd_on_host(self.builddir, ["file", img])
|
||||
out = out.splitlines()
|
||||
self.assertIn("UBI image, version 1", out[0])
|
||||
|
||||
subprocess.call(["truncate", "-s 128M", img])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user