#!/bin/sh # test_report_header defines an inline conftest.py using the pytest_report_header(startdir) # hook signature; newer pytest's pluggy hook-signature validation rejects "startdir" # (renamed to start_path long ago), so the nested pytest subprocess it spawns exits with # PluginValidationError/INTERNAL_ERROR, and the outer assert result.ret == 0 fails. This is # a pytest-version-skew bug in pytest-sugar's own test suite (stale hook signature), not a # pytest-sugar runtime bug. pytest -vv --deselect tests/test_sugar.py::TestTerminalReporter::test_report_header | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'