Skip to content

Commit 5411fda

Browse files
gaoyusongsimo5
authored andcommitted
gssproxy/tests: add missing cmd_index in t_program
Signed-off-by: gaoyusong <gaoyusong2@huawei.com>
1 parent 9396b57 commit 5411fda

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/t_program.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from t_acquire import run as run_acquire_test
77

88
import os
9+
import testlib
910

1011
GSSPROXY_PROGRAM = '''
1112
[gssproxy]
@@ -22,7 +23,7 @@
2223
'''
2324

2425
def run(testdir, env, conf):
25-
conf['prefix'] = str(cmd_index)
26+
conf['prefix'] = str(testlib.cmd_index)
2627
prefix = conf["prefix"]
2728
retval = 0
2829

@@ -45,7 +46,8 @@ def run(testdir, env, conf):
4546
update_gssproxy_conf(testdir, conf["keysenv"], GSSPROXY_CONF_TEMPLATE)
4647
gssproxy_reload(testdir, conf['gpid'])
4748

48-
print_return(retval, -1, "Program", False)
49+
print_return(retval, -1, "(%d) Program" % testlib.cmd_index, False)
50+
testlib.cmd_index += 1
4951
return retval
5052

5153
if __name__ == "__main__":

0 commit comments

Comments
 (0)