SeattleTestbed / softwareupdater

Software updater daemon
MIT License
1 stars 6 forks source link

Software updater unit tests fail when they encounter folders #2

Closed choksi81 closed 10 years ago

choksi81 commented 10 years ago

None

choksi81 commented 10 years ago

Author: armon Attached is the output of the unit test

Writing initial metainfo... Traceback (most recent call last): File "test_updater_local.py", line 336, in main() File "test_updater_local.py", line 210, in main test_updater.create_folders(tmpserver) File "/Users/adadgar/Projects/seattle/trunk/updatetest/test_updater.py", line 130, in create_folders write_meta_and_copy(topdir + '/noup', 'updater') File "/Users/adadgar/Projects/seattle/trunk/updatetest/test_updater.py", line 49, in write_meta_and_copy writemetainfo.create_metainfo_file(keyname+'.privatekey', keyname+'.publickey', True) File "/Users/adadgar/Projects/seattle/trunk/updatetest/writemetainfo.py", line 1599, in create_metainfo_file filehash = get_file_hash(filename) File "/Users/adadgar/Projects/seattle/trunk/updatetest/writemetainfo.py", line 1547, in get_file_hash fileobj = file(filename, 'rb') IOError: 21 Is a directory

choksi81 commented 10 years ago

Author: couvb I modified writemetainfo.mix and the softwareupdater tests to ignore directories instead of failing when encountering them. This change was committed in r1757.