Commits

JakobKrainz committed 8caa67b

testcase fix

  • Participants
  • Parent commits b6ed97a

Comments (0)

Files changed (2)

             l = os.listdir(keydir + '/' + user)
         except OSError as e:
             continue
+        l.sort()
         debug("gen_authkeys: for user " + user + " using keyfiles " + repr(l))
         for keyfile in l:
             p = keydir + '/' + user + '/' + keyfile

test/test_sshauthkeyfile.py

     execCmd([testdict['hgadmin'], '-q', '--confdir', confdir, 'updateauth'])
     x = open(authkf).read()
     if not x == res1:
-        fail("authkeyfile creation failed")
+        print(">>>>>>>>>>>>>>>>>> found:")
+        print(x)
+        print(">>>>>>>>>>>>>>>>>> received:")
+        print(res1)
+        print(">>>>>>>>>>>>>>>>>>")
+        fail("authkeyfile creation failed:\n " + repr(authkf) + "\n" + repr(x))
     fd = open(authkf+'_const', "w")
     fd.write("prefix-key\nnochnprefixkey\n")
     fd.close()