mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
support/testing: rename variables for readability
The 'lines' variable is overwritten with its own fields. Thus it contains a line first, and then a list of fields -- it never contains 'lines'. Use two different variables named 'line' and 'fields' to make the code more readable. Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Acked-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
cfecdfadc1
commit
ad79bb5085
@ -21,10 +21,10 @@ def dumpe2fs_run(builddir, image):
|
|||||||
return ret.strip().splitlines()
|
return ret.strip().splitlines()
|
||||||
|
|
||||||
def dumpe2fs_getprop(out, prop):
|
def dumpe2fs_getprop(out, prop):
|
||||||
for lines in out:
|
for line in out:
|
||||||
lines = lines.split(": ")
|
fields = line.split(": ")
|
||||||
if lines[0] == prop:
|
if fields[0] == prop:
|
||||||
return lines[1].strip()
|
return fields[1].strip()
|
||||||
|
|
||||||
def boot_img_and_check_fs_type(emulator, builddir, fs_type):
|
def boot_img_and_check_fs_type(emulator, builddir, fs_type):
|
||||||
img = os.path.join(builddir, "images", "rootfs.{}".format(fs_type))
|
img = os.path.join(builddir, "images", "rootfs.{}".format(fs_type))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user