It's perfectly normal that some tests are skipped, but you obviously do need to set the DISPLAY environment variable appropriately for the piglit run. Something like DISPLAY=:0 python2 piglit-run.py ...