primitive-restart-draw-mode: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/lib64/piglit/bin/primitive-restart-draw-mode - from package: piglit

You may install the required package with command yum install {package}
Error in other languages:
primitive-restart-draw-mode: bevel nie gevind nie
primitive-restart-draw-mode: comandă negăsită
primitive-restart-draw-mode: comando não encontrado
primitive-restart-draw-mode: commande introuvable
primitive-restart-draw-mode: command not found
primitive-restart-draw-mode: käsku ei ole
primitive-restart-draw-mode: không tìm thấy lệnh
primitive-restart-draw-mode: komanda nerasta
primitive-restart-draw-mode: Kommando nicht gefunden.
primitive-restart-draw-mode: kommandot finns inte
primitive-restart-draw-mode: komut yok
primitive-restart-draw-mode: nie znaleziono polecenia
primitive-restart-draw-mode: níor aimsíodh an t-ordú
primitive-restart-draw-mode: no se encontró la orden
primitive-restart-draw-mode: no s'ha trobat l'ordre
primitive-restart-draw-mode: opdracht niet gevonden
primitive-restart-draw-mode: parancs nem található
primitive-restart-draw-mode: perintah tidak ditemukan
primitive-restart-draw-mode: príkaz nenájdený
primitive-restart-draw-mode: příkaz nenalezen
primitive-restart-draw-mode: команда не найдена
primitive-restart-draw-mode: командата не е открита
primitive-restart-draw-mode: 命令找不到
primitive-restart-draw-mode: コマンドが見つかりません