infinite-spot-light: 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/infinite-spot-light - from package: piglit

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