fix: fix multiapp tasks (#229)

Co-authored-by: adlsdztony <zzl0712@connect.hku.hk>
This commit is contained in:
XXZ
2025-07-03 21:53:58 +08:00
committed by GitHub
parent 7b2120c843
commit ac24ccce99
12 changed files with 57 additions and 28 deletions

View File

@@ -1,7 +1,7 @@
{
"id": "26660ad1-6ebb-4f59-8cba-a8432dfe8d38",
"snapshot": "multiapps",
"instruction": "I want to test the quality of the network environment my laptop is currently in. Please measure my network situation through speedtest.net, export the measurement results, and save them to ~/Test/Speed (if the dir does not exist, create it).",
"instruction": "I want to test the quality of the network environment my laptop is currently in. Please measure my network situation through speedtest.net, copy the results in speedtest.net/results, and save them to ~/Test/Speed/results.txt (if the dir does not exist, create it). Each metric occupies one line, with the metric name and its value separated by a single space.",
"source": "https://www.speedtest.net/",
"config": [
{
@@ -54,16 +54,21 @@
"browser"
],
"evaluator": {
"func": "compare_time_in_speedtest_results",
"func": "file_contains",
"result": {
"type": "vm_file",
"path": "/home/user/Test/Speed/Speedtest Results Export-.csv",
"dest": "Speedtest Results Export-.csv",
"time_suffix": true
"path": "/home/user/Test/Speed/results.txt",
"dest": "results.txt"
},
"expected": {
"type": "time_diff_range",
"diff_range_in_minutes": "60"
"type": "rule",
"rules": {
"expected": [
"Ping",
"Download",
"Upload"
]
}
}
},
"proxy": true