~ycheng-twn/apport/bug-1841157

« back to all changes in this revision

Viewing changes to bin/oem-getlogs

  • Committer: Y.C cheng
  • Date: 2019-12-13 07:52:15 UTC
  • Revision ID: yc.cheng@canonical.com-20191213075215-k9hyoc4rd7pwmygn
refine error and notice message, and add acpitables

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
            nv_debug_fullfile_gz = nv_debug_fullfile + ".gz"
83
83
            attach_file_if_exists(report, nv_debug_fullfile_gz, 'nvidia-bug-report.gz')
84
84
            os.unlink(nv_debug_fullfile_gz)
 
85
            os.rmdir(nv_tempdir)
85
86
    except OSError as e:
86
 
        err = 'Error: ' + str(e)
87
 
 
88
 
    os.rmdir(nv_tempdir)
 
87
        print("Error:", str(e))
 
88
        print("Fail on cleanup", nv_tempdir, ". Please fire a bug for it.")
89
89
 
90
90
def dot():
91
91
    print(".", end="", flush=True)
134
134
        }
135
135
    for name in hwe_system_commands:
136
136
        attach_command_output(report, hwe_system_commands[name], name); dot()
 
137
    attach_pathglob_as_zip(report, [
 
138
        '/sys/firmware/acpi/tables/*',
 
139
        '/sys/firmware/acpi/tables/*/*'
 
140
        ], "acpitables"); dot()
137
141
 
138
142
    # More audio related
139
143
    attach_alsa(report); dot()
227
231
    with gzip.open(filename, 'wb') as f:
228
232
        report.write(f)
229
233
    print("\nSaved log to", filename)
 
234
    print("The ower of the file is root. You might want to")
 
235
    print("    chown [user].[group]", filename)