feat: refactor parsing and scanning logic for test files
- Updated `parseFilename` to `parseTargetFilename` and modified its return structure to include `test_id` instead of `file_id`. - Introduced `parseResultFilename` to extract `test_id` and `device` from result file names. - Enhanced `fullScan` to separately handle target and results directories, improving clarity and functionality. - Updated database interactions to use `test_id` instead of `file_id` across various modules. - Added a new `/rescan` endpoint to trigger a full scan of target and results directories. - Improved logging and error handling throughout the scanning process. - Introduced `parseTputRssi` to extract throughput and RSSI data from log files.
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
{
|
||||
"target_dir": "C:\\Users\\26005101\\Desktop\\CGW453\\CGW453",
|
||||
"results_dir": "C:\\Users\\26005101\\Desktop\\MIA\\Test_results",
|
||||
"avg_time_coe": "6600",
|
||||
"avg_time_p2p": "5400",
|
||||
"avg_time_p3p": "6000"
|
||||
}
|
||||
Reference in New Issue
Block a user