Ignore:
Timestamp:
06/19/11 21:39:57 (13 years ago)
Author:
tim
Message:

fixes for smoketest script
added 1.0 targets for release

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/pyregfi-smoketest.py

    r262 r265  
    6565        path = getCurrentPath(k)
    6666        try:
    67             print(repr(path))
    6867            hive_iter = hive.subtree(path)
    6968            if hive_iter.current_key() != k:
     
    201200    new_fh = io.BytesIO(fh.read())
    202201    new_hive = pyregfi.Hive(new_fh)
     202    stat = 0
    203203    for k in new_hive:
    204         pass
     204        stat += 1
     205    print("  %d keys found" % stat)
    205206
    206207
     
    234235def loopSecurity(hive, fh):
    235236    cur = hive.root.fetch_security()
     237    first = cur
     238    stat = 0
    236239    while True:
    237240        stat += len(cur.descriptor.owner)
     
    243246       
    244247        nxt = cur.next_security()
    245         if cur == nxt:
     248        if first == nxt:
    246249            break
    247 
    248    
     250        cur = nxt
     251    print("  Security stat: %d" % stat)
     252
     253
    249254def iterSecurity(hive, fh):
    250255    stat = 0
Note: See TracChangeset for help on using the changeset viewer.