usercache = 'FILE:' + os.path.join(rb.testdir, 'usercache')
rb.kinit(rb.user_princ, None, ['-k', '-f', '-c', usercache])
-rb.run([kvno, '-C', 'impersonator@A', '-c', usercache])
+rb.run([kvno, '-C', '-c', usercache, 'impersonator@A'])
ra.kinit('impersonator@A', None, ['-f', '-k', '-t', ra.keytab])
ra.run(['./s4u2proxy', usercache, 'resource@A'])
# Make sure we don't get confused by translated messages
# or localized times.
env['LC_ALL'] = 'C'
+ # Enforce proper argument order in tests with GNU getopt.
+ env['POSIXLY_CORRECT'] = '1'
return env