30e43b9814
Add storage status sections
2021-09-29 19:56:49 -06:00
526f6e26eb
Add installed RAM sections
2021-09-29 01:24:07 -06:00
337b6d95e1
Add activation and Secure Boot sections
2021-09-29 00:59:06 -06:00
423cd343fb
Add show_os_name() with support status checks
2021-09-28 23:23:05 -06:00
d725837f9b
Add AIDA64 sections
...
Replaced old report profiles with a new basic profile.
Several sections that just slow down the process have been removed.
2021-09-28 19:21:30 -06:00
f0451a9803
Adjust Windows-specific imports and STATIC VARS
2021-09-28 18:34:50 -06:00
90fb97ad91
Fix various pylint warnings
2021-09-27 21:48:11 -06:00
2e485505d4
Skip backup sections if backup previously run
2021-09-27 21:21:09 -06:00
8289df1d62
Don't prepend exception name for WK generic types
2021-09-27 20:49:39 -06:00
528602d98e
Check if activated before getting the BIOS key
2021-09-27 20:48:55 -06:00
bc320b4d87
Add remaining 'Configure System' sections
2021-09-27 20:48:19 -06:00
f9d4b1e3a3
Add UAC sections
2021-09-27 19:44:25 -06:00
7009a074c7
Add BSoD minidump sections
2021-09-27 19:30:12 -06:00
cb3ec42b92
Add functions to disable Chrome notifications
2021-09-27 18:41:34 -06:00
b61f243cc8
Disable display sleep only during auto-repairs
2021-09-27 16:51:01 -06:00
a03d772788
Add software bundle sections
2021-09-27 16:41:57 -06:00
49d7e6d78a
Misc updates
2021-09-25 20:39:08 -06:00
68d8e292cc
Restrict OpenShell installs to Windows 10
2021-09-25 20:37:39 -06:00
b05835d80f
Enable uBlock Origin in more browsers
2021-09-25 20:35:47 -06:00
14ff5a9437
Add Firefox and uBlock Origin sections
2021-09-25 18:11:05 -06:00
578925cb70
Add Open-Shell install sections
2021-09-15 18:02:36 -06:00
38fd38f1ec
Support suffixes other than exe for kit tools
2021-09-15 16:38:11 -06:00
90f2a37531
Rename wk/cfg/tools.py to wk/cfg/sources.py
2021-09-15 16:37:25 -06:00
bec4ed520c
Add LibreOffice install sections
2021-09-15 12:25:32 -06:00
3d984f5f29
Import standard repair functions instead of auto
2021-09-15 09:58:01 -06:00
673a92b323
Add install_vcredists()
2021-09-15 09:56:09 -06:00
e485cc9674
Add Auto Setup scripts
2021-09-15 09:18:02 -06:00
ae4a72036d
Extract ERUNT before running
2021-09-14 19:14:44 -06:00
7dfd399e6e
Update __init__.py files
2021-09-13 18:42:36 -06:00
0e124dc1f2
Skip Autologon cleanup if it wasn't used
...
We found in a few cases systems starting requiring logon passwords after
Auto Repairs were run. Autologon might be the cause so we should avoid
running it, and the cleanup, if settings are already present.
Addresses issue #175
2021-08-31 17:06:38 -06:00
Admin
8767a0024a
Update 'scripts/wk/cfg/ufd.py'
2021-08-25 17:24:00 -07:00
e7f6dc6b86
Remove erroneous docstring
2021-08-25 16:05:38 -06:00
0808c8affc
Merge remote-tracking branch 'upstream/dev' into dev
2021-08-25 16:01:11 -06:00
3189fc464a
Add macOS boot options
2021-08-25 12:32:55 -06:00
29f5dab4da
Merge remote-tracking branch 'upstream/dev' into dev
2021-07-24 02:45:30 -06:00
bf6482a594
Fix possible crash in reset_windows_updates()
...
Auto Repairs could end up in an endless boot loop if
SoftwareDistribution.old exists before running
2021-07-23 21:58:47 -06:00
40d5b147b5
Skip scanning archives with Emsisoft
2021-06-30 18:12:38 -06:00
8a685d4e60
Add option to include extra images in build-ufd
2021-06-30 01:02:03 -06:00
f9f947fab6
Update wk.std.bytes_to_string()
2021-06-29 22:40:40 -06:00
29dc4694b4
Merge remote-tracking branch 'upstream/dev' into dev
2021-06-23 23:36:03 -06:00
9c5767f71f
Update CPU testing sections
2021-06-23 23:33:45 -06:00
e4fbc7fe69
Prevent 100% CPU usage in NonBlockingStreamReader
2021-06-23 23:30:19 -06:00
d76dca8fd7
Catch and log missing commands
...
It's better to be explicit in what's going wrong in the case of
a missing command or program.
2021-06-23 21:33:27 -06:00
8e0fdf641b
Retest temps with sysbench if Prime95 runs too hot
...
If the CPU reaches the failing temps during Prime95 then sysbench will be
run to emulate a less artificial workload. The both the overall and sysbench
max temps are recorded and shown in the results.
Added new option to track an alternate max temp value in wk.hw.sensors.
This was needed so show two different max temps recorded during CPU testing.
Sysbench was added to the Linux package list and is compiled for macOS.
Without manually compiling the package it brings in way too many dependencies
to support SQL DB testing (which we don't need).
2021-06-17 03:16:34 -06:00
2840795b78
Set power plan to high performance in Auto Repairs
2021-05-14 15:41:19 -06:00
a8cf29c5fe
Merge remote-tracking branch 'upstream/dev' into dev
2021-05-14 15:39:36 -06:00
93de0645cd
Use custom power plan during Auto Repairs
2021-05-14 15:38:54 -06:00
5a320658c2
Fix Emsisoft cmd
...
Not sure why it worked when testing locally on C: but it lost it's mind
when running from E:
2021-05-13 21:41:16 -06:00
93fbd29a1c
Update UFD sections (again)
2021-05-13 21:41:01 -06:00
aff124dd8c
Merge remote-tracking branch 'upstream/dev' into dev
2021-05-13 21:37:56 -06:00
527a5b2e97
Avoid crash during HW Diagnostics
2021-05-13 21:32:46 -06:00
32b25f912d
Remove with_stem() usage to support Python 3.8
2021-05-13 21:30:52 -06:00
f3e3483b46
Support new Archiso layout in UFD sections
2021-05-13 21:30:32 -06:00
a5b0758d30
Adjust exception formatting in TryAndPrint()
2021-05-13 21:08:38 -06:00
e83bcb864c
Fix Autologon sections
2021-05-13 21:04:39 -06:00
326ee3953d
Merge remote-tracking branch 'upstream/dev' into dev
2021-05-07 23:57:23 -06:00
de6ee523b0
Add support for running on Python 3.8
2021-05-07 23:51:48 -06:00
1f618a4152
Run AVRemover on first run of Auto Repairs
2021-05-07 23:50:34 -06:00
db25a632fe
Merge remote-tracking branch 'upstream/dev' into dev
2021-05-07 18:26:17 -06:00
b7b8f20e24
Add timezone check to Auto Repairs
2021-05-07 18:18:38 -06:00
9c8c7099e5
Add MBAM sections
2021-05-07 04:58:40 -06:00
b80e73a5ad
Use new set_quarantine_path()
2021-05-07 02:44:57 -06:00
0baea441ae
Merge remote-tracking branch 'upstream/dev' into dev
2021-05-07 02:43:18 -06:00
59fd85429c
Abort on KeyboardInterrupts
2021-05-07 02:38:55 -06:00
d2fb8250bc
Update backups and quarantine paths
2021-05-07 02:24:57 -06:00
bde9863b98
Add backup browsers sections
2021-05-07 00:31:26 -06:00
228114f82c
Add Emsisoft section
2021-05-06 03:13:44 -06:00
297d03b0f2
Merge remote-tracking branch 'upstream/dev' into dev
2021-05-05 23:58:18 -06:00
4928989913
Fix bug in download_tool()
...
Skip check to ensure the correct architecture path is returned.
2021-05-05 23:56:12 -06:00
23f519102d
Merge remote-tracking branch 'upstream/dev' into dev
2021-05-05 23:43:25 -06:00
6a00444bd4
Support multiple architectures in get_tool_path()
...
This change was necessary to avoid using the wrong paths for
tools with speparate executables for different architectures.
2021-05-05 23:29:29 -06:00
4872a18e91
Support tools with multiple architectures
2021-05-05 23:10:38 -06:00
6cece2c832
Add file associations sections
2021-05-02 02:18:23 -06:00
b57f50d4b5
Merge remote-tracking branch 'upstream/dev' into dev
2021-05-02 02:17:28 -06:00
acc3a4dccc
Add extract_tool() function
2021-05-02 02:16:34 -06:00
eaa367a5c9
Fix imports under Windows
2021-05-02 02:14:28 -06:00
2a90a381a4
Merge remote-tracking branch 'upstream/dev' into dev
2021-05-02 01:17:13 -06:00
461bc8ac9c
Merge branch 'auto-repair' into dev
2021-05-02 01:10:45 -06:00
e9db4238ff
Run Autologon before any scans
2021-05-01 21:17:42 -06:00
2d4ae65188
Run KVRT in new pane under ConEmu
2021-05-01 20:41:24 -06:00
6b35d4165d
Add download_tool() function
2021-05-01 20:04:50 -06:00
9b6bfa2760
Make Sync Clock optional
2021-05-01 20:01:01 -06:00
ff43bc79b8
Add uninstaller sections
2021-05-01 20:00:46 -06:00
080e440d23
Add AdwCleaner sections
2021-05-01 19:28:07 -06:00
04b2c1c9d9
Add Microsoft Defender sections
2021-05-01 19:14:32 -06:00
03000662fe
Add KVRT sections
2021-05-01 17:12:11 -06:00
cf8b600dd5
Drop extraneous SYSTEMDRIVE lookups
2021-05-01 17:00:48 -06:00
f706a48f60
Add HMP sections
2021-04-30 03:26:45 -06:00
bdbed4622e
Add BleachBit sections
2021-04-30 02:59:19 -06:00
77920db5b5
Add missing default UAC setting
2021-04-30 02:58:02 -06:00
06b0ff81e1
Add Auto Repairs init functions
2021-04-30 02:09:43 -06:00
e488b2c89c
Avoid crash when downloading tools
2021-04-30 02:08:50 -06:00
447e93ca3a
Resume in ConEmu if started in ConEmu
2021-04-30 00:19:33 -06:00
7f40a52444
Add remaining Windows Repairs functions
2021-04-30 00:06:22 -06:00
e17c96d465
Add auto_chkdsk()
2021-04-29 21:14:12 -06:00
973dad3240
Add "auto_" windows updates functions
2021-04-29 20:17:24 -06:00
078859838a
Add 'Backup Settings' group functions
2021-04-24 20:24:39 -06:00
a7db972ba5
Get repair functions by name instead of full path
2021-04-24 20:23:08 -06:00
1dbad4bafe
Split result variables to result and message
...
result is for the return variable from TryAndPrint calls.
message is the text to display or save to the registry.
2021-04-24 20:18:45 -06:00
b2c94113d9
Remove date from DEFAULT_LOG_DIR
2021-04-24 19:03:41 -06:00
005d4d1ea6
Search all modules for a matching exception
2021-04-24 16:55:17 -06:00
9a77a5cb9b
Update Auto Repair sections
...
* Expanded saving/loading settings from registry
* Keep previous selections by default but allow changes
* Print previous session(s) to have the whole session info present
* Changed variable names for clarity (why am I so bad at this?)
2021-04-23 23:57:22 -06:00
10b443f0f5
Add framework for running auto repair groups
2021-04-23 03:20:32 -06:00
c2d3752bc5
Update TryAndPrint()
2021-04-21 23:57:19 -06:00
d200878e0d
Revert update() to private method and add wrapper
2021-04-21 22:27:49 -06:00
125907ed3a
Add Auto Repairs menus
2021-04-21 05:19:27 -06:00
3c748520e1
Don't suppress bells in ConEmu
2021-04-20 22:23:05 -06:00
ee3203c485
Show message when downloading tools
2021-04-20 22:06:03 -06:00
b44fda2ccd
Avoid clobbering files when downloading tools.
2021-04-20 21:14:31 -06:00
cb825e37ba
Add support to run tools from .cbin or online
2021-04-19 01:04:18 -06:00
b8335188ce
Add wk.kit.tools
...
For code related to downloading, finding, and running tools on the kit.
2021-04-17 17:49:04 -06:00
65cb8481bc
Add wk.repairs section
2021-04-17 14:10:30 -06:00
fd7a8c4066
Add Windows service functions
2021-04-17 12:13:24 -06:00
9351b597c2
Avoid potential crash in run_chkdsk_online()
2021-04-17 11:38:06 -06:00
7064472e0b
Fix SFC scan
2021-04-16 03:33:47 -06:00
ffa2df416b
Set source drive to sleep instead of detaching it
2021-04-16 01:07:56 -06:00
e088f705ba
Add run_dism()
2021-04-15 23:33:11 -06:00
47b49077da
Show CHKDSK progress in separate pane under ConEmu
2021-04-15 23:31:08 -06:00
943c1e11b9
Retry CHKDSK on failures
...
Fixes issue #159
2021-04-15 21:13:28 -06:00
ed6f188eb2
Avoid pylint errors under Linux/macOS
2021-04-15 20:04:33 -06:00
759cd12379
Reoder Windows functions
2021-04-15 19:48:36 -06:00
da9563f870
Merge remote-tracking branch 'upstream/dev' into dev
2021-04-15 01:37:18 -06:00
20fe08dbb4
Get correct size for child dev under macOS
2021-04-14 02:16:58 -06:00
a4ee7b890c
Disable image mode in ddrescue-tui (for now)
2021-04-13 23:16:55 -06:00
d781038e88
Enable ddrescue-tui under macOS
...
Currently limited to only cloning whole disks, not select partitions.
We need to specify the --size due to a bug under macOS; it fails to
detect the size of the device/partition and reports 8192 PiB instead.
2021-04-13 02:18:17 -06:00
c90bc0ef37
Merge remote-tracking branch 'upstream/dev' into dev
2021-04-11 15:32:16 -06:00
535455813c
Use the new command name for pipes.sh
2021-04-11 15:30:32 -06:00
c6ca5228ac
Merge remote-tracking branch 'upstream/dev' into dev
2021-04-11 15:28:27 -06:00
b047b28f30
Fix typo
2021-04-11 15:27:51 -06:00
2774e54732
Merge remote-tracking branch 'upstream/dev' into dev
2021-04-10 17:47:25 -06:00
719e6c457d
Remove stale code
2021-04-10 17:37:46 -06:00
bed7e79758
Add questionable argument to hw-diags
...
I, the author of this script, strongly recommend against using this!
References issue #139
2021-04-09 04:15:20 -06:00
4b956cb488
Disable benchmarks only for smaller USB drives
...
Addresses issue #128
2021-04-09 03:51:13 -06:00
a42d5e06f4
Merge remote-tracking branch 'upstream/dev' into dev
2021-04-09 03:08:19 -06:00
66bf189e55
Disable benchmark tests on surface scan failures
2021-04-09 03:02:28 -06:00
b3a667641d
Show failed attributes during surface scans
2021-04-09 02:29:06 -06:00
ce8dddd9b7
Include note if attributes fail mid-diagnostics
2021-04-09 02:27:11 -06:00
d0b8b3ad57
Add even more pylint cleanup fixes
2021-04-09 00:18:18 -06:00
af09772d67
Merge remote-tracking branch 'upstream/dev' into dev
2021-04-09 00:16:41 -06:00
812fd15011
Add more pylint cleanup fixes
2021-04-09 00:15:59 -06:00
8689a68c2f
Skip asking for a ticket ID twice
...
For this to happen the tech has to disable osTicket integration first
so in that case just set ticket to the date. No need asking again.
Addresses issue #132 (I think, couldn't reproduce)
2021-04-08 23:58:44 -06:00
388c6302cb
Merge remote-tracking branch 'upstream/dev' into dev
2021-04-08 23:41:01 -06:00
9d3508909a
Add DRIVE_POWEROFF_TIMEOUT to wk.cfg.ddrescue
...
This replaces a magic number
2021-04-08 23:40:00 -06:00
249e868c3d
Merge remote-tracking branch 'upstream/dev' into dev
2021-04-08 23:22:56 -06:00
830e088ccf
Report if the dest starts failing during recovery
2021-04-08 23:17:00 -06:00
5a2d35d3cc
Prevent recovering to wrong devices or paths
...
Before starting a recovery run verify the source and destination have
not changed. This will prevent issues on some extreme edge cases but
the main goal is for disappearing source drives with heavy damage.
e.g. A very damaged source drive disappears mid-recovery, drops off and
before would need a restart, or unplug/replug, to continue. Now we can
attempt to re-detect the drive and resume recovery without leaving the
script. If for some reason the drive order were to change then we'll
avoid using the wrong source or destination device.
2021-04-08 23:09:00 -06:00
43fd30322e
Expand checks for missing source or destination
...
Addresses issue #155
2021-04-08 22:43:13 -06:00
18bc139d25
Add 'Detect drives' option to ddrescue-tui
2021-04-08 20:55:28 -06:00
c452256fe7
Fix pylint issues in wk/hw/ddrescue.py
2021-04-08 20:49:21 -06:00
1a3b57da66
Poweroff source drives after ddrescue errors
...
Addresses issue #165
2021-04-08 19:41:05 -06:00
a5766a8a1e
Avoid more possibles crashes when uploading graphs
2021-04-06 17:27:44 -06:00
9eb782e2b7
Remove macOS override to default log path
...
Isn't needed since we're setting $HOME and including a symlink.
i.e. /var/root/Logs --> /Volumes/RAM_Disk/Logs
2021-04-06 17:06:48 -06:00
86f0f14c34
Merge remote-tracking branch 'upstream/dev' into dev
2021-04-06 17:06:30 -06:00
9478000cdf
Add Clock Sync option to HW-Diags menu under macOS
2021-04-06 16:57:31 -06:00
61f2b00a2a
Export SMC data in HW Diagnostics
...
Addresses issue #154
2021-04-06 15:53:19 -06:00
8e5d350ac2
Update default log dir under macOS
2021-04-06 15:52:57 -06:00
641695a2be
Avoid crash if benchmark image fails to generate
2021-04-01 23:22:04 -06:00
586e3fc61c
Merge remote-tracking branch 'upstream/dev' into dev
2021-03-26 01:24:35 -06:00
ae42634a8e
Add SMART override for some Samsung devices
...
* Addresses issue #163
2021-03-26 00:57:08 -06:00
1e09ddc9ff
Merge remote-tracking branch 'upstream/dev' into dev
2021-03-25 21:28:50 -06:00
ba5efedb11
Remove pylint bad-whitepace references
2021-03-25 21:25:40 -06:00
9818d5196f
Export state objects as pickle files
...
This should better ensure debugging an issue will have all the relevant
info at the ready.
2021-03-25 21:15:56 -06:00
3f48b10942
Apply "temp" fix for macOS HW-Diags
2021-03-25 21:11:21 -06:00
467a7e7925
Merge remote-tracking branch 'upstream/dev' into dev
2021-03-25 15:20:55 -06:00
7fdab1b1e6
Fix typo
2021-03-25 15:14:37 -06:00
bad27e20ad
Merge remote-tracking branch 'upstream/dev' into dev
2021-03-25 15:01:40 -06:00
1f4a3c6e55
Avoid crash when parsing special mountpoints
2021-03-25 14:37:02 -06:00
60e5d86f8e
Merge remote-tracking branch 'upstream/dev' into dev
2021-03-24 22:22:54 -06:00
2Shirt
7147ef1753
Fix get_serial()
2021-03-19 15:23:49 -06:00
2Shirt
080383d9a9
Fix bad call to mount_disk()
2021-03-19 03:37:40 -06:00
2Shirt
207c52663b
Allow mounting of protected macOS partitions
...
Renamed mount_volumes() to mount_disk() to better match diskutil naming.
Dropped read_write from mount_disk() since it isn't used
2021-03-18 22:23:07 -06:00
2Shirt
7c1a9f4bdc
Fix osTicket volume report
2021-03-18 21:52:29 -06:00
2Shirt
2b98eeabca
Include GPT info when saving hw-diaqs debug data
2021-03-18 21:41:59 -06:00
2Shirt
ef426c95b5
Fix get_core_storage_volumes()
2021-03-18 21:29:58 -06:00
2Shirt
908ffdc999
Add mount_volumes() to wk.os.mac
...
Supports both CoreStorage and APFS containers
2021-03-18 03:23:09 -06:00
2Shirt
bc3f6946f7
Add support for macOS High Sierra Base Images
2021-03-17 01:23:12 -06:00
2Shirt
4dc5c51beb
Include Mac serial number in OST Post
2021-03-13 03:20:51 -07:00
2Shirt
72259303b9
Mount RAM Disk in live-macOS
2021-03-13 03:19:39 -07:00
2Shirt
314675c32e
Unknown
2021-03-13 03:15:30 -07:00
31cd8d1e56
Fix items_not_found logic
2021-01-10 17:19:27 -07:00
7d77aa81b0
Update sensors.py to improve CPU data
...
Include AMD CCD sensors
Exclude current sensors
2021-01-09 21:08:53 -07:00
9a53d4adad
Updated log handling to support Windows
2020-04-26 16:28:23 -06:00
6c775bbba7
Adjusted running as root checks
...
* Suppress pylint errors when checking uid/euid/gid
* Helpful when checking under Windows
* Allow running wk.exe.stop_process() under Windows
2020-04-26 16:24:35 -06:00
d0d74b8763
Support creating emtpy keys in reg_write_settings()
2020-04-07 23:23:11 -06:00
8753344665
Added reg_write_settings()
...
* Replaces old write_registry_settings()
* Uses tuples to combine all parts of the values
* e.g. ('SampleValue', 'SampleData', 'SZ', '32)
* This will allow merging multiple setting groups together
* Should be more readable than the old method
2020-04-07 23:05:40 -06:00
24dbdf29fd
Added Windows Registry functions
2020-04-06 19:46:09 -06:00
a4df2f41d3
Added wk.exe.stop_process()
...
* Replaced wk.hw.ddrescue.stop_ddrescue()
2020-02-25 20:52:08 -07:00
45a6b31910
Added periodic destination health check
...
* Addresses issue #158
2020-02-25 20:45:59 -07:00
94a428f6da
Added check for missing source/destination
...
* Addresses issue #155
2020-02-25 20:15:13 -07:00
0a00e17536
Avoid another rare crash when saving average temps
2020-02-17 16:54:51 -07:00
1f1fdfc738
Avoid rare crash when saving average temps
2020-02-17 16:44:33 -07:00
1b7c248102
Merge remote-tracking branch 'upstream/dev' into dev
2020-02-03 18:16:12 -07:00
3b640ac85b
Addressed issue #153
2020-02-03 18:09:46 -07:00
e301617ca0
Revert "Adjusted menus under live macOS"
...
This reverts commit 4a3981e10c .
2020-01-30 20:05:15 -07:00
c1970b8c23
Merge remote-tracking branch 'upstream/dev' into dev
2020-01-30 14:09:13 -07:00
e8522bf2bb
Added pause if fan speed can't be set under macOS
...
* This can be removed after a bit of real-world testing
2020-01-30 14:08:05 -07:00
1fe4fd9849
Added 1201 Root CA to fix upload sections
2020-01-30 14:06:16 -07:00
a66c27be84
Updated get_disk_details_macos()
2020-01-30 14:01:30 -07:00
ebbdedef6c
Added get_fstype_macos()
2020-01-30 13:59:12 -07:00
ad1adba837
Add APFS and HFS/HFS+ to RECOMMENDED_MAP_FSTYPES
2020-01-30 13:51:23 -07:00
6eb75c38a3
Report if item(s) are missing during build-ufd
2020-01-30 13:48:51 -07:00
64db679a4d
Allow setting verbose value for TryAndPrint obj
...
* Instead of strictly per-call
2020-01-30 13:47:59 -07:00
154acc5280
Run build-ufd as current user
...
* sudo is used for elevated commands instead
* Avoids splitting logs between root and current user
* Addresses issue #150
2020-01-30 13:36:43 -07:00
385b2158fd
Improved method to avoid crash during self-tests
2020-01-30 13:28:52 -07:00
dc6dcfb845
Revert "Avoid crash during SMART self-test"
...
This reverts commit cc8c0992f6 .
2020-01-30 13:25:46 -07:00
c8f95d866a
Typo fix
2020-01-30 13:24:49 -07:00
86f0f1e5fd
Avoid rare crash concerning disk attributes
...
* Crash would occur under these circumstances:
* Disk Attributes test was not selected
* One or more other disk tests were selected
* A non-blocking attribute error was detected
2020-01-30 13:16:48 -07:00
417241acb5
Fixed clearing the screen under live macOS
2020-01-30 13:09:57 -07:00
4a3981e10c
Adjusted menus under live macOS
2020-01-30 13:08:13 -07:00
c7d57ff266
Fixed logging under live macOS
2020-01-30 13:07:04 -07:00
e1943b9fb4
Strip sudo use if running as root on Linux/macOS
...
* Allows running under live macOS
2020-01-30 13:03:21 -07:00
98032a0fed
Removed stale TODO statements
2020-01-28 19:00:47 -07:00
1a26aead44
Network test working under macOS
2020-01-28 18:38:33 -07:00
869293ced9
Merge remote-tracking branch 'upstream/dev' into dev
2020-01-28 18:30:35 -07:00
f14f5e0d72
Adjusted logging
2020-01-28 18:21:24 -07:00
5cc0456f40
Improve performance under macOS by using rdisks
2020-01-28 18:12:53 -07:00
0c8701e3e4
Support get_disks_macOS() on older macOS versions
2020-01-28 18:10:10 -07:00
cc8c0992f6
Avoid crash during SMART self-test
2020-01-28 18:09:33 -07:00
fe50ce8994
Use new Mac fan sections in HW Diags
2020-01-28 18:08:26 -07:00
7fd3e3bada
Added Mac fan control sections
2020-01-28 18:04:21 -07:00
25d9f3d20d
Updated Mac sensor names
2020-01-28 18:00:29 -07:00
8a4c2c059c
Added MariaDB connection timout
...
* Prevents waiting 1-2 minutes for it to fail if the server can't be reached
* Connection attempt is made once per _connect() call
2020-01-24 17:53:01 -07:00
cf75348c2c
Merge remote-tracking branch 'upstream/dev' into dev
2020-01-24 12:29:01 -07:00
568483d49c
Updated config to use hexidecimal for sfdisk
2020-01-24 12:27:13 -07:00
ac0efb90e5
Merge remote-tracking branch 'upstream/dev' into dev
2020-01-23 18:58:50 -07:00
9c95dcbd5c
Fixed CoreStorage scanning
...
* Dropped use of mktemp since sudo was interferrring
* Fixed crash if timeout occurred
2020-01-23 18:56:27 -07:00
25c532881e
Allow custom temp file suffixes
2020-01-23 18:56:11 -07:00
b9b2422c69
Merge remote-tracking branch 'upstream/dev' into dev
2020-01-23 14:14:01 -07:00
1b643f3918
Updated wk.kit.ufd
...
* Don't continue if a step fails, instead re-raise the exception
* Made the private functions public
2020-01-23 14:09:13 -07:00
019cbb6c1a
Updated TryAndPrint
...
* catch_all can now be set for a TryAndPrint instance
* As opposed to defining for every TryAndPrint.run() call
2020-01-23 14:06:52 -07:00
29a8731fb5
Merge remote-tracking branch 'upstream/dev' into dev
2020-01-22 23:19:21 -07:00
ea3240772e
Create mount_point before mounting source
2020-01-22 23:15:12 -07:00
b71d3479be
Updated wk.kit.ufd
...
* Moved TryAndPrint run_program calls to private functions
* Only need PASS/FAIL and to hide the cmd output
* Avoid crash when searching for boot config files
* Misc Bugfixes
2020-01-22 23:11:24 -07:00
78e28bb6d2
Log wk.exe.run_program result in debug mode
2020-01-22 23:07:03 -07:00
f7c6d5d3c3
Only include graph links in osTicket posts
2020-01-22 20:10:17 -07:00
fd8f46be13
Don't export/upload graphs for skipped tests
...
* e.g. USB device which USB benchmarks disabled
2020-01-22 19:51:01 -07:00
701d647a91
Added I/O Benchmark PNG graph sections
2020-01-22 19:19:54 -07:00
8643ec2c7c
Fixed setting CPU max temp in osTicket
2020-01-22 19:19:00 -07:00
5f9aec8233
Merge remote-tracking branch 'upstream/dev' into dev
2020-01-22 15:38:20 -07:00
5cbb86abd8
Clear screen before starting diags
2020-01-22 15:37:26 -07:00
0348d708d9
Merge remote-tracking branch 'upstream/dev' into dev
2020-01-22 11:29:18 -07:00
bfc17942cd
Added header to SMART self-test output
...
* Matches badblocks header
* Also added Initializing message
2020-01-22 11:22:47 -07:00
e92ceb070c
Adjusted I/O Benchmark screen layout
2020-01-22 11:21:49 -07:00
79abbcfaf8
Avoid crash when getting NVMe attributes
2020-01-22 11:20:39 -07:00
e09216012f
List failed tests with overall result in osTicket
2020-01-20 19:08:10 -07:00
710fcc29dc
Catch non-blocking SMART errors between tests
...
* This doesn't block further tests, just ensures Disk Attributes fails
2020-01-20 18:31:29 -07:00
daffb606ee
Merge remote-tracking branch 'upstream/dev' into dev
2020-01-19 16:00:29 -07:00
1b473b1ab0
Fix pipes when run from hw-diags
2020-01-19 15:14:03 -07:00
53b0d9275b
Expanded test-station names
2020-01-17 16:34:44 -07:00
5fbd33e845
Fixed HDD checkbox logic
2020-01-17 16:14:29 -07:00
fa96f6ea13
Fixed known test-station names
2020-01-17 16:14:20 -07:00
3265b19f3d
Merge remote-tracking branch 'upstream/dev' into dev
2020-01-16 20:38:39 -07:00
d3597f339e
Added volume report to hw diags
2020-01-16 20:29:07 -07:00
a01f3d04b6
Updated mount-all-volumes
...
* Added gui argument to open Thunar after mounting
2020-01-16 19:18:12 -07:00
c161ebac2a
Save ddrescue results to log at exit
...
* Instead of printing them since it should be run in tmux
* And as such the results would be obscured from the user anyway
2020-01-13 22:11:07 -07:00
e9b1fe7819
Adjusted clone settings filename
...
* Use source path if the model wasn't detected
* Avoids names like "Clone_.json"
2020-01-13 21:59:40 -07:00
65284860fb
Adjusted HW Diag main menu
2020-01-13 18:40:48 -07:00
12121c7078
Update ESET live SysRescue boot entry to use UUID
2020-01-13 18:15:51 -07:00
749580d041
Merge remote-tracking branch 'upstream/dev' into dev
2020-01-13 17:53:42 -07:00
28d9085231
Fixed getting filesystem UUID
2020-01-13 17:48:22 -07:00
47b4ab6636
Merge remote-tracking branch 'upstream/dev' into dev
2020-01-13 17:35:26 -07:00
16dbffd91c
Enable SAT usage for USBs to expand SMART support
...
* Only enabled for USB devices
* Only enabled if attributes weren't found using --device=auto
* Addresses issue #109
2020-01-13 17:12:58 -07:00
e355fb1316
Use UUIDs instead of labels in build-ufd
...
* Addresses issue #138
2020-01-13 16:48:00 -07:00
d8617df871
Adjusted self-test results formatting
2020-01-13 15:45:07 -07:00
b9d0527c52
Added osTicket checkbox sections
2020-01-11 21:23:49 -07:00
e9c0855f65
Convert CPU max temp to int
2020-01-11 20:54:35 -07:00
c1f2f0b6d8
Updated wk.cfg.main
2020-01-11 20:52:00 -07:00
426d77147f
Disable ost if connection fails post ticket select
2020-01-11 20:46:45 -07:00
e301bff2c2
Avoid replacing higher temps in osTicket
2020-01-11 20:43:27 -07:00
9c12dacfb2
Post CPU/Disk results to osTicket
2020-01-11 20:31:39 -07:00
96b755be49
Added osTicket report sections
2020-01-11 19:54:07 -07:00
fef8323282
Pass Disk Attribute test for devices lacking SMART
2020-01-11 19:53:34 -07:00
ea9a9f9a46
Pass Disk Attribute test for devices lacking SMART
...
* Since these can't fail I think passing them makes sense
2020-01-11 19:51:57 -07:00
a573a7e1c3
Reset top_text before returning to main menu
2020-01-11 16:59:42 -07:00
28c1d61d20
osTicket integration complete for ddrescue TUI
2020-01-11 16:46:06 -07:00
177a7fbec2
Added 1201 server definitions
2020-01-11 16:45:54 -07:00
2f2bfacbb7
Started integrating osTicket functions in ddrescue
2020-01-10 19:32:25 -07:00
ceee0495eb
Started integrating osTicket functions in HW Diags
2020-01-10 18:50:21 -07:00
7e69eff7a8
Fixed wk.os.linux.mount_volumes()
2020-01-10 18:07:02 -07:00
a81e6f80e6
Adjusted response formatting and added add_note()
...
* Test-Station name *should* be included in all posts
* Ticket ID and name included in all posts
* Optional osTicket note included in all posts
2020-01-10 17:52:56 -07:00
e438d3aec7
Dropped _convert_report()
...
* This should be handled in wk.hw.diags and wk.hw.ddrescue
2020-01-10 17:10:13 -07:00
b4e07a0d88
Added post_response()
2020-01-10 17:04:28 -07:00
dcd1525c4f
Added safety checks
2020-01-10 17:04:13 -07:00
e9e19053f4
Finished osTicket checkbox functions
2020-01-10 16:29:20 -07:00
df2a7c03c1
Added initial osTicket files
2020-01-08 22:05:23 -07:00
752944f741
Merge remote-tracking branch 'upstream/dev' into dev
2020-01-08 20:52:00 -07:00
76a9d90ecb
Adjusted ddrescue TUI results report
2020-01-08 20:35:32 -07:00
6e3f02961c
Made load_settings() and save_settings() private
...
* Clears a pylint issue and makes sense to me
2020-01-08 19:50:04 -07:00
43cf4e2727
Added generate_report() to wk.hw.ddrescue.State()
2020-01-08 19:46:40 -07:00
9171ed6685
Revert SMART config used for testing
2020-01-08 19:09:55 -07:00
0a2976d9ce
Set pass/fail attributes in disk_attribute_check()
2020-01-08 19:02:09 -07:00
8932242a86
Merge remote-tracking branch 'upstream/dev' into dev
2020-01-08 17:07:33 -07:00
ac2e5a4fcf
New project orgnization
...
* Match upstream layout for the benefits listed there
2020-01-08 00:28:56 -07:00
7702cdcf0a
Finished converting UFD sections, testing next
2020-01-07 23:53:55 -07:00
8b9672313a
Added ufd settings
2020-01-07 23:21:18 -07:00
142ad75744
Added remaining UFD functions
2020-01-07 21:58:04 -07:00
b0b0b612a1
Added Linux mount and unmount functions
...
* If not running with root priviledges then udevil is used.
2020-01-06 20:58:46 -07:00
c135d686df
Added Linux functions for building UFDs
2020-01-06 20:27:59 -07:00
8f31e5bd67
Added I/O functions for building UFDs
2020-01-06 20:26:57 -07:00
7bf03749ec
Added CoreStorage scanning logic
...
* Still needs tested
2020-01-04 21:35:42 -07:00
b75326aeee
Added indent option to wk.std.print_report()
2020-01-04 21:04:24 -07:00
945ae941fa
Added mount-all-volumes sections
...
* Still need to add the CoreStorage logic
2020-01-04 21:01:41 -07:00
fdad48f613
Fixed wk.std.color_string()
2020-01-04 21:00:36 -07:00
72787d5c24
Fix destination checks when imaging
2020-01-04 18:42:55 -07:00
b79deefdd6
Fix map name when using loopback devices
2020-01-04 18:28:43 -07:00
383b7c331a
Safety wheels are off
2020-01-04 18:07:28 -07:00
64645cdf1f
Expanded logging (slightly)
2020-01-04 18:06:57 -07:00
5926c3170d
Reworked retry sections
...
* Edit the map file directly instead of using --retrim and --try-again
* Allows for more accurate pass status reporting
* Allows for simpler pass break/continue logic
* Create the map file before running ddrescue
* Allows file to be edited by the current user instead of just root/ddrescue
* Added check for empty map files
* Avoids incorrectly marking a pass as complete
2020-01-04 18:01:39 -07:00
470524dfff
Added pause after "No actions performed" message
2020-01-04 16:54:28 -07:00
4acdab8c0f
Mark passes Skipped as appropriate
2020-01-04 16:53:56 -07:00
c71e30e4fb
Adjusted debug reports
2020-01-04 15:58:43 -07:00
a68e52322c
Fixed aborting when multiple parts selected
2020-01-04 15:41:15 -07:00
e6e51498dd
Clear ddrescue pane every minute
2020-01-03 18:36:53 -07:00
30a5df8a00
Fix timezone in SMART pane
2020-01-03 18:36:40 -07:00
4a2b18e4f7
Added confirmation to Quit if recovery < 100%
2020-01-03 17:55:23 -07:00
848ccc3ef1
Made several State() functions "private"
2020-01-03 17:54:55 -07:00
097360ca0a
Always ask GPT/MBR/Source when formatting a disk
...
* This fixes cloning partitions when not creating a boot partiton
2020-01-03 17:32:51 -07:00
6eaf5c2bc2
Get accurate size from ddrescuelog
...
* Reported size is off by one sector in some cases
2020-01-03 17:25:12 -07:00
eb702577ae
Mark clones as started to allow resuming
2020-01-03 16:45:47 -07:00
276e2e0dda
Made mode a State() variable
2020-01-03 16:38:48 -07:00
a4b5e81ef1
Made working_dir a State() variable
2020-01-03 16:08:38 -07:00
4f2b31c705
Avoid crash while stopping ddrescue
...
* Killall is needed because of sudo
2020-01-03 01:14:06 -07:00
2b18da7244
Added real ddrescue command logic
...
* Still needs testing!!
* Set all dry_run keywords to default to True
2020-01-03 00:47:33 -07:00
c22c3da493
Expanded safety checks
...
* Added destination NVMe/SMART checks
2020-01-02 23:33:21 -07:00
2983eb9bd3
Updated run_ddrescue()
...
* Added SMART pane logic
2020-01-02 23:24:23 -07:00
299b075eef
Fixed BlockPair().safety_check()
2020-01-02 22:32:18 -07:00
48eb4c13d7
Better handle non-iterables in color_string()
2020-01-02 21:57:40 -07:00
9ae8810282
Added real disk format section
...
* --dry-run=True safety wheels still engaged
2020-01-02 21:22:47 -07:00
ac04a3ddc5
Added another safety check for block pairs
...
* Needed one more check since clone pairs were assumed to be okay
2020-01-02 21:14:25 -07:00
5d0ed475a6
Added option to match source partition table type
2020-01-02 20:07:46 -07:00
9702d7665f
Added limited support for converting MBR/GPT types
2020-01-02 19:54:18 -07:00
6dc887b04e
Added initial disk formatting sections
2020-01-02 15:50:26 -07:00
764d35836b
Force running all passes if retry selected
2020-01-01 15:06:16 -07:00
1dacdd4637
Abort if an invalid image destination selected
2020-01-01 15:02:23 -07:00
f45a10395f
Added --force-local-map option
2020-01-01 15:02:11 -07:00
df6f3ba8e1
Added initial ddrescue pass logic
2019-12-30 20:21:37 -07:00
e88e4ab3eb
Added ddrescue settings sections
2019-12-30 19:29:32 -07:00
bcd46d4017
Added SMART/Journal panes
2019-12-30 19:25:46 -07:00
d9561a0159
pylint cleanup
2019-12-30 18:47:35 -07:00
e7fbc21721
Added EToC logic
2019-12-30 17:43:15 -07:00
0ddafe8a42
Updated side pane sections
2019-12-30 16:40:28 -07:00
631449e40a
Added format_status_string()
2019-12-30 16:40:03 -07:00
89de1d52bb
Updated BlockPair __init__() and pass_complete()
2019-12-30 16:37:49 -07:00
6ad68c37d4
Added update_progress_pane()
...
* Still a WIP
2019-12-29 19:29:09 -07:00
fa39801523
Adjusted block pair report
2019-12-26 20:18:17 -07:00
7d7dc70630
Added map data loading sections
2019-12-26 20:16:35 -07:00
fc0a37999b
Added size safety check to ddrescue TUI
2019-12-26 19:27:08 -07:00
bd3601e0c8
Ask for ticket ID and use in working_dir
2019-12-26 17:35:58 -07:00
20787da275
Optionally disallow empty responses to input_text
2019-12-26 17:19:26 -07:00
c083a124ad
Adjusted wk.std.input_text() again
...
* Dropped tcflush usage for simplicity
* Readded the prompt usage from 564745f03b
2019-12-26 17:00:41 -07:00
20ffa0c6db
Added --start-fresh argument
2019-12-24 18:01:04 -07:00
ef6abce6ab
Skip source partition selection if using JSON data
2019-12-24 17:35:38 -07:00
f542b62f3c
Use source model name in clone settings save file
2019-12-24 16:44:26 -07:00
4c50a1fb8a
Added first run flag to clone settings
...
* If the loaded settings are for a non-attempted recovery discard settings
2019-12-24 16:43:07 -07:00
67bb9223aa
Moved block pair report to new function
2019-12-24 16:42:18 -07:00
e7e3261b0a
Fixed partition separators
2019-12-24 16:38:42 -07:00
44b6c4eedb
Disable network servers by default
2019-12-22 21:24:55 -07:00
f71cc8ad68
Expanded block pair sections and confirmations
2019-12-22 21:24:02 -07:00
1ed6309971
Include selected source parts in 1st confirmation
2019-12-22 19:05:32 -07:00
6d6380dc6a
Added clone load/save and add block pair sections
2019-12-22 18:49:07 -07:00
0f2007f5dc
Set working directory for ddrescue TUI
...
* If cloning use backup server share
* If imaging use destination directory
* If a preferred directory and fstype can't be used then warn the user
2019-12-22 16:14:03 -07:00
428d255538
Added selection confirmation sections
2019-12-21 16:53:55 -07:00
0f0c47bbe4
Force selecting at least one partition/device
2019-12-20 12:54:42 -07:00
59ef06f402
Added select_path()
2019-12-19 11:59:34 -07:00
2fb2c3fa6e
Adjusted loopback device descriptions
2019-12-19 11:31:32 -07:00
b20e6cc4ad
Mount passed filepath as raw image
...
* Also unmount atexit
2019-12-18 20:47:06 -07:00
c3245c92da
Handle passing dir/file paths to ddrescue-tui
2019-12-18 19:28:52 -07:00
3fc9a843fc
Added select_disk_parts()
...
* Differentiate between all parts selected and whole disk selected
2019-12-13 20:04:15 -07:00
c72372d55c
Replaced platform.system() with PLATFORM var
...
* Better?
2019-12-13 19:01:26 -07:00
bc2c3a2c80
Expanded source/dest disk selection sections
2019-12-13 18:37:36 -07:00
6bfee95043
Support coloring pathlib.Path objects
2019-12-13 16:38:24 -07:00
da5f521f92
Added wk.hw.ddrescue.select_disk()
2019-12-12 19:29:32 -07:00
b746cda6e7
Bugfix
2019-12-12 18:46:44 -07:00
3733da17fc
Moved get_disks() from wk/hw/diags to wk/hw/obj
2019-12-12 18:36:57 -07:00
48a6b3200b
Added init_recovery()
...
* Set mode
* Select/verify source/dest
2019-12-12 17:22:02 -07:00
3a8c052d5a
Updated ddrescue menu sections
...
* Support loading presets
2019-12-12 16:43:23 -07:00
045d2b2571
Updates ddrescue-tui tmux sections
2019-12-12 16:39:42 -07:00
5445df8e62
Added settings_select() to Menu()
...
* Supports ddrescue-tui style toggle/change usage
2019-12-12 15:52:09 -07:00
7a880e2ee7
Added initial ddrescue sections
...
* Very early outline, very broken still
2019-12-10 15:56:12 -07:00
07cb287eb0
Updated wk.net.connected_to_private_network()
...
* Can either return True/False or return None/raise Exception
* Added network check to mount_backup_shares()
2019-12-09 20:53:42 -07:00
3262888024
Added unmount network share sections
2019-12-09 20:50:17 -07:00
77190137f6
Added mount-backup-shares wrapper
2019-12-09 20:10:57 -07:00
82827b7a0d
Avoid crash under macOS
2019-12-09 19:57:47 -07:00
0472166c09
Added share mount check logic
2019-12-09 19:42:02 -07:00
9c7914fc3d
Added mount_backup_shares & mount_network_share
2019-12-09 19:23:44 -07:00
2770f85e01
Moved server definitions to wk/cfg/net.py
2019-12-09 17:50:36 -07:00
8e5bfa12f4
Added NVMe SMART status checks
...
* Addresses issue #130
2019-12-09 16:48:35 -07:00
23c99084b5
Drop SIGWINCH sections
2019-12-09 16:48:15 -07:00
cc85e3e8ed
Improve abort handling
2019-12-09 16:32:35 -07:00
081658550b
Added debug report sections
...
* HW-Diags debug reports are saved after showing results or atexit
2019-12-09 15:55:30 -07:00
6bc4ce3c0b
Add Maximum value for power on hours
2019-12-09 14:29:28 -07:00
82341dbbb3
Moved disk safety checks to after the test
...
* This way failures during the last test should be caught
2019-12-08 17:02:10 -07:00
6071470b6a
Add note to disk report for critical HW error(s)
2019-12-08 16:52:20 -07:00
376a9e92ba
Supress a couple pylint warnings
2019-12-08 16:42:34 -07:00
9dc8329dec
Updated self-test sections
...
* Improved abort handling
* Always include report if state.tests['Disk Self-Test'] is enabled
* Send abort command via smartctl if aborting self-test(s)
2019-12-08 16:37:37 -07:00
c09cd0c9c2
Added disk safety check before each test
...
* Includes possible workaround for SMART self-test TimedOut errors
2019-12-08 15:29:18 -07:00
7d66b723ca
Update test report on ERROR
2019-12-06 19:34:53 -07:00
126aaae8ba
Fix IO_RATE_REGEX under macOS
2019-12-06 19:31:32 -07:00
8f909182d3
Bugfix: typo and batch catch
2019-12-06 19:21:24 -07:00
1f74b0b989
Use "RAW" disks under macOS
2019-12-06 19:18:40 -07:00
a0b07cbfde
Added I/O Benchmark sections
2019-12-06 19:10:36 -07:00
c7585d17f0
Added graph functions
2019-12-06 15:02:06 -07:00
2c732885c6
Revert "Adjusted wk.std.input_text()"
...
This reverts commit 564745f03b .
2019-12-06 13:21:36 -07:00
2a4b68c222
Fixed tail usage under macOS
2019-12-06 13:19:47 -07:00
a76d7775fd
Updated badblocks sections
...
* Increaded pane height to 5
* Updated pass/fail/unknown logic
* Reduced lines included in reports
2019-12-06 13:02:57 -07:00
b45dc74e5a
Start logging after updating log path
2019-12-06 13:01:31 -07:00
564745f03b
Adjusted wk.std.input_text()
...
* Should hopefully reduce the duplicate prompts
2019-12-06 13:00:34 -07:00
56a99a8a4e
Avoid crash if tmux pane closes while getting size
2019-12-06 12:25:48 -07:00
e1ef9db6b6
Color disk labels in badblocks panes
2019-12-05 23:02:08 -07:00
d173d317e3
Updated badblocks section
...
* Start tests in reverse order (so they appear in order on screen)
* Fixed report parsing
2019-12-05 22:57:13 -07:00
76772be422
Added badblocks sections
...
* Supports running in parallel
* Dropped NonBlockingStreamReader usage
2019-12-05 22:20:26 -07:00
6167d0d78d
Get disk serial numbers under macOS
2019-12-05 14:24:57 -07:00
da7c12bb61
Don't use dummy test objects when no disks avail
2019-12-05 14:20:17 -07:00
fb4b44fefb
Fixed temps pane under macOS
2019-12-03 18:16:33 -07:00
65c08ad972
Updated disk_self_test()
...
* Parallel self-tests!
2019-12-03 17:36:52 -07:00
b71bca4577
Updated disk_attribute_check()
2019-12-03 16:31:26 -07:00
445523e5f1
Fix aborting Prime95 test
2019-12-03 15:18:10 -07:00
6da34c1f2b
Only register tmux atexit when running HW Diags
...
* Prevents unintended killing of tmux panes when importing wk or wk.hw
2019-12-03 15:03:02 -07:00
c0b6606758
Stop Prime95 with INT signal instead of TERM
2019-12-03 14:47:57 -07:00
d1005ad0a9
Updated sensor name formatting
2019-12-02 22:47:09 -07:00
e041125c20
Added hw-sensors
2019-12-02 21:02:12 -07:00
4dc41aec27
Bugfix: mprime typos
2019-12-02 20:31:33 -07:00
4990537082
Handle critical temps correctly in mprime sections
...
* Moved ThermalLimitReachedError catches to wk.hw.sensors
* Before they would never be caught and would never stop the script
* Added cpu_reached_critical_temp() to wk.hw.sensors
* This allows us to check if it happened without exceptions
* Added thermal_action to wk.hw.sensors
* This is run when ThermalLimitReachedError(s) are caught
* Stop print_countdown if mprime is terminated
* This is required since it may be killed in the background
2019-12-02 20:11:02 -07:00
c520b5a865
Update for Python 3.8 pylint alerts
2019-12-02 17:55:05 -07:00
7796189d14
Clear screen before all diag functions
2019-12-02 17:54:48 -07:00
aa3b69f6fa
Added progress pane logic
2019-11-30 22:43:10 -07:00
4cadb913e8
Dropped bufsize=1 due to Python 3.8 warning
2019-11-30 21:29:24 -07:00
79371a3fa5
Added results screen to hw-diags
2019-11-14 20:43:44 -07:00
402c4359a1
Split Prime95 and cooling Test() objects
2019-11-14 20:16:15 -07:00
fec2473b93
Fixed Prime95 test length
2019-11-14 19:16:10 -07:00
45086c90bb
Prime95 test fully functional
2019-11-14 19:13:21 -07:00
1a91f72d8c
Running and stopping Prime95 working
2019-11-13 19:45:53 -07:00
46a6dda0ff
Prime95 workflow mostly done
2019-11-13 17:47:52 -07:00
0eadb784bb
Updated get_ram_list_linux()
2019-11-13 11:14:55 -07:00
aa5b5cd9b7
Selecting and running (dummy) tests now working
2019-11-12 21:10:11 -07:00
d4ca575426
Fix get_disks_macos()
2019-11-12 20:06:18 -07:00
1054794af3
Added get_disks()
...
* This calls either get_disks_linux() or get_disks_macos()
2019-11-12 19:56:39 -07:00
4e6b2cd4da
Started work on per-pass log handling in hw-diags
2019-11-12 17:32:55 -07:00
9b5d9e1186
Added watch-mac and reverted previous commit
...
* This allows the degree symbol to be displayed correctly
* (At least in iTerm2)
2019-11-12 10:36:34 -07:00
4bd4536cfd
Avoid using the unicode degree symbol under macOS
...
* The (home)brew watch command butchers the unicode?
2019-11-11 23:57:48 -07:00
e3d0902c45
Updated wk.hw.sensors
...
* Added monitor_to_file()
* Added save_average_temps()
2019-11-11 23:22:47 -07:00
4ecdc80e4c
Added sensor update sections
2019-11-11 22:18:09 -07:00
b15c01ac37
Fixed sensor sections under macOS
2019-11-11 21:47:55 -07:00
dc030ab076
Added initial version of wk.hw.sensors
...
* Supports Linux and macOS
* Only initial temp, no updates yet
2019-11-11 21:29:21 -07:00
49c0ce9a62
Support layouts with multiple panes of same type
2019-11-11 17:29:58 -07:00
72905f9ccc
Added CLI options to hw-diags
2019-11-10 21:05:41 -07:00
ee7d656f2a
Delete log atexit if empty
2019-11-10 20:47:59 -07:00
21dfeac20b
Expanded logging in wk.hw.diags
2019-11-10 20:22:48 -07:00
906826d752
Updated TryAndPrint()
...
* Don't log function name unless in debug mode
* Log msg_good instead of UNKNOWN for non-failed functions with no output
* Avoid issue if function returns int
2019-11-10 20:21:15 -07:00
196e2adc82
Added tmux layout maintenance sections
...
* Support both threading and signal based calls
* Should provide a smoother UIX under Linux & macOS
2019-11-10 19:10:35 -07:00
0cbc858cf4
Intentionally crash if not running inside tmux
2019-11-10 18:05:06 -07:00
6963d2ae71
Fix echo usage under macOS
2019-11-10 18:01:07 -07:00
0b6cd1cb6c
Added secret menu options in hw-diags
2019-11-10 17:42:04 -07:00
964885d63c
Ensure tmux panes are closed atexit for hw-diags
2019-11-10 17:38:03 -07:00
76a501af85
Added State() and tmux sections to wk/hw/diags
2019-11-10 17:04:45 -07:00
2520126905
Use broader imports for wk/hw/diags.py
2019-11-10 16:22:04 -07:00
fe228a5edc
Added keyboard_test()
2019-11-10 15:17:00 -07:00
100757ba69
Added network_test()
2019-11-10 14:47:56 -07:00
ce3a98028a
Fixed wk.std.show_data() alignment
2019-11-10 14:29:55 -07:00
8f663072f6
Added HW-Diags audio test, menu, and launcher
2019-11-09 19:25:30 -07:00
05d6fb762c
Added wk/tmux.py
2019-11-09 17:29:31 -07:00
177401ecc8
Small formatting adjustment
2019-11-09 17:28:43 -07:00
920f481049
Adjusted DEBUG log date format
2019-11-09 14:25:22 -07:00
205c5ed0fc
Support model-specifc attribute thresholds
...
* Addresses issue #142
2019-11-08 16:00:27 -07:00
3a2924bd51
Added print_report()
2019-11-08 14:08:16 -07:00
a053931c17
Added Test() object
2019-11-07 20:46:21 -07:00
b162c99d6e
Added BaseObj() class
2019-11-07 20:40:50 -07:00
12de0e5b84
Inlcude RAM vendor ID for unknown IDs
2019-11-07 18:58:20 -07:00
0e9b1af56b
Added safety check to Disk().get_details()
2019-11-07 18:57:31 -07:00
d933ff9742
Reordered functions
2019-11-01 18:52:26 -06:00
e634d1691f
Added SMART self-test sections
2019-11-01 18:51:02 -06:00
93102b5144
Reworked checking Disk() attributes
...
* Added separate Disk().check_attributes() function
* Can be used to check all KNOWN_ATTRIBUTES or just blocking ones
* Renamed ATTRIBUTES to KNOWN_ATTRIBUTES for clarity
* Renamed 'Critical' column to 'Blocking'
* Added '(Failed)' note to attribute report
* Addresses issue #131
2019-10-31 19:19:52 -06:00
07fdbcdd7c
Added Disk().safety_checks()
...
* Raises an exception for blocking events
* Removed "Ignore" column from ATTRIBUTES
* Listed attributes should either be warnings or errors
* Only 'Critical' attributes should block futher tests
2019-10-31 18:28:34 -06:00
d25b341eb3
Added is_4k_aligned_macos()
2019-10-31 16:48:30 -06:00
5d6b7578d3
Fixed 4K alignment check under Linux
2019-10-31 16:34:54 -06:00
2a019d09a0
Updated Disk notes sections
2019-10-31 16:33:35 -06:00
117df6158a
Fix attribute value colors
2019-10-28 20:57:34 -06:00
ae5e9b8f34
Added 4K alignment check
2019-10-28 20:45:30 -06:00
c7090e77c2
Added Disk().generate_report()
...
* Uses new merged ATTRIBUTES config
2019-10-28 20:15:58 -06:00
fbb480dae6
Adjusted drive details
...
* Use 'bus' instead of 'proto(col)' or 'tran'
* I think it's a better description
* Reordered details alphanumerically
* Removed 'log-sec' from required details
* Only concerned with the phy-sec
2019-10-28 17:55:37 -06:00
6a1be5cf06
Moved wk.obj to wk.hw.obj
...
* Done because the main classes are CpuRam() and Disk()
* The rest are there for uniformity while working with HW objects
2019-10-28 17:46:17 -06:00
c0242ad55c
Added macOS support for disk details and SMART
2019-10-25 19:13:04 -06:00
70248ef0b5
Added macOS support for CpuRam() object.
2019-10-23 20:33:41 -07:00
07120b7dc4
Fixed Disk() description and SMART data
2019-10-23 16:28:55 -07:00
52d61226a0
Added Disk() obj
2019-10-23 15:23:50 -07:00
6e557da370
Added CpuRAM() object.
2019-10-22 18:49:44 -07:00
c9b3794f0e
Renamed some vars for consistency
2019-10-22 18:43:04 -07:00
3ecf107c39
Adjusted print_colored() kwargs
2019-10-21 18:57:31 -07:00
193511d83b
Added color_string(), blink "colors", and more
...
* The list of strings are now joined using ' ' by default
* Instead of ''
* Added YELLOW_BLINK and RED_BLINK escape codes
* print_colored() now optionally logs the msg
2019-10-21 18:51:32 -07:00
187a29ff6f
Bugfix speedtest()
2019-10-02 22:44:36 -07:00
cc483abd29
Added ping()
...
Added ping()
Added ping()
Added ping()
Added ping()
Added ping()
Added ping()
Added ping()
Added ping()
2019-10-02 22:31:54 -07:00
386299ce57
Added network functions
2019-10-02 22:26:10 -07:00
e80a63ee51
Added show_data()
2019-10-02 22:25:54 -07:00
a2017fa415
Added check_disk.py
2019-10-02 21:40:56 -07:00
ad06fab8a2
Updated log path options
...
* Adjusted default log path
* Support Windows Kit/Tool/General log paths
2019-10-02 21:34:07 -07:00
1ffabd8642
Updated wk.os.win
2019-09-23 00:01:54 -07:00
4c35d7cb4e
Added CHKDSK functions
2019-09-22 23:34:02 -07:00
ff1044a401
Fixed logic error in non_clobber_path()
...
* Before the '_1000' path would be returned incorrectly
* If a non-existant path wasn't found that is
2019-09-22 23:31:15 -07:00
60969f26eb
Reworked setting log paths
...
* Added DEFAULT_LOG_DIR and DEFAULT_LOG_NAME vars
* Allows easier reuse of default values
* Added format_log_path()
* Uses default path/name unless dir/name specified
* Added get_root_logger_path()
* Returns the first fileHandler path found (if any)
* update_log_path() now supports multiple handler scenarios
2019-09-22 23:27:41 -07:00
2ea0b4818a
Updated run_sfc_scan()
...
* Output is UTF-16, decode it as such
* Simplifies section
* Reworked checking the result
* Use separate exceptions for corruption and general errors
2019-09-22 21:50:08 -07:00
972cb6fb66
Breaking updates to TryAndPrint()
...
* Removed print_return argument
* Instead if the function returns data assume it should be printed
* Added ability to override msg_good for a single run() call
2019-09-22 21:27:28 -07:00
1cfd8fb7b4
Added outer activation script
2019-09-22 20:06:40 -07:00
f27f3024e8
Added get_json_from_command()
2019-09-18 22:37:18 -07:00
115a462f6e
Added Windows activation functions
2019-09-18 22:27:38 -07:00
0636a032be
Added threading functions
2019-09-18 21:51:39 -07:00
27d348bf9c
Expanded debug log
2019-09-18 21:36:39 -07:00
f1775766e7
Updated wk.log.update_log_path()
...
* The log file is now moved instead of copied
* The new path can now be based on a new dir, name, or both
2019-09-18 20:58:06 -07:00
318f59c473
Added logging to print functions
2019-09-18 20:23:13 -07:00
5925aca3c2
Allow strings to be passed to print_colored()
2019-09-18 20:02:39 -07:00
f55f0ba016
Adjusted logging in TryAndPrint()
2019-09-18 20:02:13 -07:00
304d811698
Moved exe functions to a separate file
2019-09-18 18:49:56 -07:00
2678ce77da
Added SFC scan
2019-09-15 19:34:06 -07:00
b41027562a
Added SafeMode enter/exit sections
2019-09-15 18:47:52 -07:00
78e3765730
Added delete_item()
2019-09-15 17:29:10 -07:00
010ac87de6
Added delete_empty_folders() and delete_folder()
2019-09-15 16:50:06 -07:00
7a99713043
Added non_clobbering_path()
2019-09-15 16:28:47 -07:00
6af5f78fbb
Dropping wk/exe.py
...
* All intended functionality now in std.py
2019-09-15 15:34:27 -07:00
8ca59a029a
Added popen_program()
2019-09-15 15:32:34 -07:00
40413151c8
Added run_program()
2019-09-15 15:10:13 -07:00
6f60006c9a
Added get, kill, and wait process functions
2019-09-15 14:35:32 -07:00
b71f1d8d80
Reordered functions
2019-09-15 13:33:59 -07:00
8c8eea0f9a
Adjusted pylint settings
2019-09-13 22:48:33 -07:00
7cb5ecd09f
Added TryAndPrint() class
...
* Replaces try_and_print() function
* Moved several functions to TryAndPrint() class
* _format_exception_message()
* _format_function_output()
* _get_exception()
* Separates the formatting settings and the function paramters
2019-09-13 22:35:39 -07:00
8d9e264efc
Fix menu checkmark under macOS
2019-09-13 21:02:56 -07:00
3d95d9c1a1
Fixed clear_screen() under Windows
2019-09-13 20:47:27 -07:00
4d6fad82db
Adjusted menu index formatting
...
* Right-align numbered and action text
2019-09-13 20:29:18 -07:00
94dac676fe
Updated formatting
2019-09-13 20:29:05 -07:00
a59f20ac8b
Support optional extra separators in Menu()
2019-09-13 19:44:56 -07:00
428bb5a05c
Updated advanced_select()
2019-09-13 18:45:07 -07:00
21b44d01ff
Added avanced_select() to Menu()
...
* Renamed 'Enabled' to 'Selected' for clarity
2019-09-13 18:41:47 -07:00
9da19f3702
Added support for hidden menu entries
2019-09-13 17:49:44 -07:00
f1a1a158ba
Added simple_select() to wk.std.Menu()
...
* Allows user to select one entry from available entries
2019-09-13 16:16:33 -07:00
68000272ea
Improved clear_screen()
...
* Now uses subprocess.run() instead of os.system()
* Avoids weird clear -> print issues
* i.e. Missing newlines, etc
2019-09-13 16:14:36 -07:00
e52e90454d
Fix seperator length
2019-09-07 15:44:38 -06:00
d7fc209e53
Added some doctests
2019-09-07 15:17:54 -06:00
849c53a62d
Include try_and_print result in log
2019-08-22 17:29:50 -06:00
2b08654d7c
Fixed _get_separator_length()
...
* Use title line(s) and 'Display Name' instead of name
* Menu()._update() is required to be run previously
2019-08-20 22:34:38 -06:00
1542ba39cd
Fixed _get_valid_answers()
...
* Correctly omits disabled items
2019-08-20 22:12:09 -06:00
34d5106804
Added _get_valid_answers() to Menu()
2019-08-20 22:05:20 -06:00
1f96ae5c53
Renamed _show() to _generate_menu_text()
...
* It returns a string instead of printing the text
2019-08-20 22:04:42 -06:00
bd3440daa9
Updated Menu()
...
* Added logic for disabled items
* Use 'Display Name' in _show()
2019-08-20 21:49:42 -06:00
8cedac738e
Added _get_display_name() and _update() to Menu()
...
* _update()
* Calls _get_display_name()
* Used to update the state of the menu
* Will add set logic to this method later
2019-08-20 21:18:47 -06:00
7a9c569251
Separating public and private methods
2019-08-20 21:15:59 -06:00
0707d650f6
Started work on the new Menu() object
...
* This will replace the old menu_select() function
* This will contain all toggle/set/selection logic
* Which would allow for simpler usage in other sections/scripts/etc
2019-08-20 20:32:37 -06:00
516dc88d44
Removed improper NotImplementedError usage
2019-08-20 19:21:44 -06:00
c43539a92d
Switching to f-strings where appropriate
2019-08-20 16:00:08 -06:00
b314a9f1e2
Bugfix updates for try_and_print()
2019-08-09 21:57:41 -06:00
4100c38280
Added generic exception classes
2019-08-09 20:34:05 -06:00
d722754f12
Replaced UserWarnings with proper exceptions
2019-08-09 20:10:13 -06:00
147b9d2035
Added format_exception_message()
2019-08-09 19:50:45 -06:00