Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 91928aa5 authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Slightly tweak the "extract" script.

Flag: EXEMPT host test change only
Bug: 292141694
Test: Manual test -- run the script and check the output
Change-Id: I2cf8c00bcc4d9e347a2f5c4f24fb0e3ba1e1ee93
parent 340592dd
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -48,6 +48,7 @@ def main(args):
    with open(outfile, "w") as out:
        out.write(HEADER)

        count = 0
        with gzip.open(log) as f:
            for line in f:
                s = line.decode("utf-8")
@@ -63,7 +64,8 @@ def main(args):
                if m:
                    command = m.groups()[0]

                    out.write('#========\n')
                    count += 1
                    out.write(f'### Command {count} ========\n')

                    # Show the full command line before executing it.
                    out.write('#echo ' + shlex.quote(command) + '\n')