Revert "autotest: fixed bash syntax"

This reverts commit 8d393c89d0880fd8fec535482aed644f73b821ef.
Revert "Revert "autotest: fixed bash syntax""

This reverts commit 9e5c997079b5aef2f9b9ef9c8bb06f7f2cf42c3f.