blob: 98d73fa0378944f0781c9251728d0c4103db944e [file] [log] [blame]
Andrew Geisslerc87764f2020-06-27 00:16:32 -05001#!/bin/sh
2
Andrew Geisslerd159c7f2021-09-02 21:05:58 -05003# there needs to be something in /etc/resolv.conf for the gunicorn
4# ptests to work, so make sure there's at least one nameserver line
5echo "nameserver 8.8.8.8" >> /etc/resolv.conf
6
Andrew Geisslerc87764f2020-06-27 00:16:32 -05007pytest -o log_cli=true -o log_cli_level=INFO | 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}}'