Add infeasible support

This commit is contained in:
Timothyxxx
2024-02-14 11:59:50 +08:00
parent 30d3464114
commit 3f59ff46dc
4 changed files with 18 additions and 22 deletions

View File

@@ -9,7 +9,7 @@
"os"
],
"evaluator": {
"func": "",
"func": "infeasible",
"result": {
},
"expected": {

View File

@@ -8,7 +8,7 @@
"os"
],
"evaluator": {
"func": "",
"func": "infeasible",
"result": {
},
"expected": {

View File

@@ -5,32 +5,15 @@
"source": "https://help.ubuntu.com/lts/ubuntu-help/power-percentage.html.en",
"trajectory": "trajectories/",
"config": [
{
"type": "execute",
"parameters": {
"command": [
"python",
"-c",
"import pyautogui; import time; pyautogui.click(960, 540); time.sleep(0.5);"
]
}
}
],
"related_apps": [
"os"
],
"evaluator": {
"func": "exact_match",
"func": "infeasible",
"result": {
"type": "vm_command_line",
"command": "gsettings get org.gnome.desktop.interface show-battery-percentage",
"shell": true
},
"expected": {
"type": "rule",
"rules": {
"expected": "true\n"
}
}
}
}