Skip to content

Instantly share code, notes, and snippets.

@gctucker
Last active August 25, 2020 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gctucker/79821ceb98313c6d832a8fed5522fbda to your computer and use it in GitHub Desktop.
Save gctucker/79821ceb98313c6d832a8fed5522fbda to your computer and use it in GitHub Desktop.
KernelCI Generic Test API sample
{
"job": "mainline",
"git_branch": "master",
"git_commit": "d012a7190fc1fd72ed48911e77ca97ba4521bccd",
"kernel" : "v5.9-rc2",
"build_environment": "gcc-8",
"arch": "arm64",
"defconfig": "defconfig",
"defconfig_full": "defconfig",
"lab_name": "gtucker-kci-data",
"device_type": "qemu",
"name": "v4l2-compliance-vivid",
"test_cases": [
{
"name": "device-presence",
"status": "PASS"
}
],
"sub_groups": [
{
"name": "Buffer-ioctls-Input-0",
"test_cases": [
{
"name": "VIDIOC_EXPBUF",
"status": "PASS"
},
{
"name": "Requests",
"status": "FAIL"
}
]
}
],
"log": "Fake log\nJust some text\nNo parsing"
}
@gctucker
Copy link
Author

gctucker commented Aug 24, 2020

@gctucker
Copy link
Author

gctucker commented Aug 24, 2020

Command to submit the results (with backend API token stored in config file):

$ ./kci_data submit --data-file=kernelci-generic-api-v4l2.json --db-config=staging.kernelci.org --verbose
{"reason":"Test group 'v4l2-compliance-vivid' created","result":[{"_id":{"$oid":"5f44b88fd6ae1367ab1d3e5d"}}],"code":201}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment