Commit 5ed1957
committed
Merge tag 'ktest-v7.1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest
Pull ktest updates from Steven Rostedt:
- Fix undef warning when WARNINGS_FILE is unset
The check_buildlog() references WARNINGS_FILE even when it's not set.
Perl triggers a warning in this case. Check if the WARNINGS_FILE is
defined before checking if the file it represents exists.
- Fix how LOG_FILE is resolved
LOG_FILE is expanded immediately after the config file is parsed. If
LOG_FILE depends on variables from the tests it will use stale values
instead of using the test variables. Have LOG_FILE also resolve test
variables.
- Treat a undefined self reference variable as empty
Variables can recursively include itself for appending. Currently, if
the references itself and it is not defined, it leaves the variable
in the define: "VAR = ${VAR} foo" keeps the ${VAR} around. Have it
removed instead.
- Fix clearing of variables per tests
If a variable has a defined default, a test can not clear it by
assigning the variable to empty. Fix this by clearing the variable
for a test when the test config has that variable assigned to
nothing.
- Fix run_command() to catch stderr in the shell command parsing
Switch to Perl list form open to use "sh -c" wrapper to run shell
commands to have the log file catch shell parsing errors.
- Fix console output during reboot cycle
The POWER_CYCLE callback during reboot() can miss output from the
next boot making ktest miss the boot string it was waiting for.
- Add PRE_KTEST_DIE for PRE_KTEST failures
If the command for PRE_KTEST fails, ktest does not fail (this was by
design as this command was used to add patches that may or may not
apply). Add PRE_KTEST_DIE value to force ktest to fail if PRE_KTEST
fails.
- Run POST_KTEST hooks on failure and cancellation
PRE_KTEST always runs before a ktest test, have POST_KTEST always run
after a test even if the test fails or is cancelled to do the
teardown of PRE_KTEST.
- Add a --dry-run mode
Add --dry-run to parse the config, print the results and exit without
running any of the tests.
- Store failures from the dodie() path as well
The STORE_FAILURES saves the logs on failure, but there's failure
paths that miss storing. Perform STORE_FAILURES in dodie() to capture
these failures too.
* tag 'ktest-v7.1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest:
ktest: Store failure logs also in fatal paths
ktest: Add a --dry-run mode
ktest: Run POST_KTEST hooks on failure and cancellation
ktest: Add PRE_KTEST_DIE for PRE_KTEST failures
ktest: Stop dropping console output during power-cycle reboot
ktest: Run commands through list-form shell open
ktest: Honor empty per-test option overrides
ktest: Treat undefined self-reference as empty
ktest: Resolve LOG_FILE in test option context
ktest: Avoid undef warning when WARNINGS_FILE is unset2 files changed
Lines changed: 127 additions & 42 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| 104 | + | |
103 | 105 | | |
| 106 | + | |
104 | 107 | | |
105 | 108 | | |
106 | 109 | | |
| |||
283 | 286 | | |
284 | 287 | | |
285 | 288 | | |
| 289 | + | |
286 | 290 | | |
287 | 291 | | |
288 | 292 | | |
| |||
584 | 588 | | |
585 | 589 | | |
586 | 590 | | |
587 | | - | |
| 591 | + | |
588 | 592 | | |
589 | 593 | | |
590 | 594 | | |
| |||
910 | 914 | | |
911 | 915 | | |
912 | 916 | | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
913 | 925 | | |
914 | 926 | | |
915 | 927 | | |
| |||
1354 | 1366 | | |
1355 | 1367 | | |
1356 | 1368 | | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
1357 | 1372 | | |
1358 | 1373 | | |
1359 | 1374 | | |
| |||
1491 | 1506 | | |
1492 | 1507 | | |
1493 | 1508 | | |
1494 | | - | |
1495 | | - | |
1496 | 1509 | | |
1497 | | - | |
1498 | | - | |
1499 | | - | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
1500 | 1516 | | |
1501 | 1517 | | |
1502 | 1518 | | |
| |||
1575 | 1591 | | |
1576 | 1592 | | |
1577 | 1593 | | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
1578 | 1612 | | |
1579 | 1613 | | |
1580 | 1614 | | |
| |||
1601 | 1635 | | |
1602 | 1636 | | |
1603 | 1637 | | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
1604 | 1643 | | |
1605 | 1644 | | |
1606 | 1645 | | |
| |||
1634 | 1673 | | |
1635 | 1674 | | |
1636 | 1675 | | |
| 1676 | + | |
1637 | 1677 | | |
1638 | 1678 | | |
1639 | 1679 | | |
| |||
1913 | 1953 | | |
1914 | 1954 | | |
1915 | 1955 | | |
1916 | | - | |
| 1956 | + | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
1917 | 1960 | | |
1918 | 1961 | | |
1919 | 1962 | | |
| |||
2508 | 2551 | | |
2509 | 2552 | | |
2510 | 2553 | | |
2511 | | - | |
| 2554 | + | |
2512 | 2555 | | |
2513 | 2556 | | |
2514 | 2557 | | |
| |||
4183 | 4226 | | |
4184 | 4227 | | |
4185 | 4228 | | |
4186 | | - | |
| 4229 | + | |
| 4230 | + | |
4187 | 4231 | | |
4188 | 4232 | | |
4189 | 4233 | | |
4190 | 4234 | | |
4191 | 4235 | | |
4192 | 4236 | | |
4193 | 4237 | | |
4194 | | - | |
| 4238 | + | |
| 4239 | + | |
4195 | 4240 | | |
4196 | 4241 | | |
4197 | 4242 | | |
| |||
4213 | 4258 | | |
4214 | 4259 | | |
4215 | 4260 | | |
| 4261 | + | |
| 4262 | + | |
| 4263 | + | |
| 4264 | + | |
| 4265 | + | |
| 4266 | + | |
| 4267 | + | |
| 4268 | + | |
| 4269 | + | |
| 4270 | + | |
| 4271 | + | |
| 4272 | + | |
| 4273 | + | |
| 4274 | + | |
| 4275 | + | |
| 4276 | + | |
| 4277 | + | |
| 4278 | + | |
| 4279 | + | |
| 4280 | + | |
| 4281 | + | |
| 4282 | + | |
| 4283 | + | |
| 4284 | + | |
| 4285 | + | |
| 4286 | + | |
| 4287 | + | |
| 4288 | + | |
| 4289 | + | |
| 4290 | + | |
| 4291 | + | |
| 4292 | + | |
| 4293 | + | |
| 4294 | + | |
| 4295 | + | |
| 4296 | + | |
| 4297 | + | |
| 4298 | + | |
| 4299 | + | |
| 4300 | + | |
| 4301 | + | |
| 4302 | + | |
| 4303 | + | |
| 4304 | + | |
| 4305 | + | |
| 4306 | + | |
| 4307 | + | |
4216 | 4308 | | |
4217 | 4309 | | |
4218 | 4310 | | |
| |||
4298 | 4390 | | |
4299 | 4391 | | |
4300 | 4392 | | |
| 4393 | + | |
4301 | 4394 | | |
4302 | 4395 | | |
4303 | 4396 | | |
| |||
4311 | 4404 | | |
4312 | 4405 | | |
4313 | 4406 | | |
| 4407 | + | |
| 4408 | + | |
4314 | 4409 | | |
4315 | 4410 | | |
4316 | 4411 | | |
| |||
4342 | 4437 | | |
4343 | 4438 | | |
4344 | 4439 | | |
| 4440 | + | |
| 4441 | + | |
| 4442 | + | |
4345 | 4443 | | |
4346 | 4444 | | |
4347 | 4445 | | |
| |||
4390 | 4488 | | |
4391 | 4489 | | |
4392 | 4490 | | |
| 4491 | + | |
| 4492 | + | |
| 4493 | + | |
| 4494 | + | |
| 4495 | + | |
4393 | 4496 | | |
4394 | | - | |
| 4497 | + | |
4395 | 4498 | | |
4396 | 4499 | | |
4397 | 4500 | | |
| |||
4421 | 4524 | | |
4422 | 4525 | | |
4423 | 4526 | | |
4424 | | - | |
4425 | | - | |
4426 | | - | |
4427 | | - | |
4428 | | - | |
4429 | | - | |
4430 | | - | |
4431 | | - | |
4432 | | - | |
4433 | | - | |
4434 | | - | |
4435 | | - | |
4436 | | - | |
4437 | | - | |
4438 | | - | |
4439 | | - | |
4440 | | - | |
4441 | | - | |
4442 | | - | |
4443 | | - | |
4444 | | - | |
4445 | | - | |
4446 | | - | |
4447 | | - | |
4448 | | - | |
| 4527 | + | |
4449 | 4528 | | |
4450 | 4529 | | |
4451 | 4530 | | |
| |||
4492 | 4571 | | |
4493 | 4572 | | |
4494 | 4573 | | |
4495 | | - | |
| 4574 | + | |
| 4575 | + | |
| 4576 | + | |
| 4577 | + | |
| 4578 | + | |
4496 | 4579 | | |
4497 | 4580 | | |
4498 | 4581 | | |
| |||
4659 | 4742 | | |
4660 | 4743 | | |
4661 | 4744 | | |
4662 | | - | |
4663 | | - | |
4664 | | - | |
4665 | | - | |
4666 | | - | |
| 4745 | + | |
4667 | 4746 | | |
4668 | 4747 | | |
4669 | 4748 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
497 | 503 | | |
498 | 504 | | |
499 | 505 | | |
| |||
0 commit comments