diff --git a/testsuite/expect/test1.54 b/testsuite/expect/test1.54
index 0ca7dce8ca5c4d336ceac091f4d2117883172af6..b01f370cbed7e00728f09520a6f0d23befac0110 100755
--- a/testsuite/expect/test1.54
+++ b/testsuite/expect/test1.54
@@ -133,11 +133,11 @@ expect {
 		set job_id $expect_out(1,string)
 		exp_continue
 	}
-	-re "executable:(/bin/)($alpha)" {
-		if {[string compare $expect_out(2,string) "date"] != 0} {
+	-re "executable:(/usr)?(/bin/)($alpha)" {
+		if {[string compare $expect_out(3,string) "date"] != 0} {
 			incr matches
 		}
-		if {[string compare $expect_out(2,string) "hostname"] != 0} {
+		if {[string compare $expect_out(3,string) "hostname"] != 0} {
 			incr matches
 		}
 		if {$matches == 4} {