diff options
Diffstat (limited to 'framework/exectest.py')
-rw-r--r-- | framework/exectest.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/exectest.py b/framework/exectest.py index a8ed8614..652ff4d2 100644 --- a/framework/exectest.py +++ b/framework/exectest.py @@ -20,6 +20,7 @@ # OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # DEALINGS IN THE SOFTWARE. +import errno import os import subprocess import shlex @@ -196,7 +197,7 @@ class ExecTest(Test): # a developer chooses to not build a test, # Piglit should not report that test as having # failed. - if e.strerror == "No such file or directory": + if e.errno == errno.ENOENT: out = "PIGLIT: {'result': 'skip'}\n" \ + "Test executable not found.\n" err = "" |