Project

General

Profile

Bug #14160

Updated by Toomas Soome 9 months ago

<pre> 
     tsoome@openindiana:~$ /opt/zfs-tests/bin/zfstest -l /var/tmp/test_results/20211012T105218/log 
     Traceback (most recent call last): 
       File "/opt/test-runner/bin/run", line 973, in <module> 
         main() 
       File "/opt/test-runner/bin/run", line 960, in main 
         filter_tests(testrun, options) 
       File "/opt/test-runner/bin/run", line 867, in filter_tests 
         line = fh.readline() 
       File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode 
         return codecs.ascii_decode(input, self.errors)[0] 
     UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 526: ordinal not in range(128) 
     tsoome@openindiana:~$ 
 </pre> 

 I do not know if this is the source for the error, but indeed there seems to be garbage in log file according to hexdump -C: 
 <pre> 
 0010e1e0    20 65 78 69 74 65 64 20    31 0a 31 30 3a 35 39 3a    | exited 1.10:59:| 
 0010e1f0    33 35 2e 31 34 20 53 55    43 43 45 53 53 3a 20 7a    |35.14 SUCCESS: z| 
 0010e200    70 6f 6f 6c 20 63 72 65    61 74 65 20 25 73 c2 a3    |pool create %s..| 
 0010e210    c2 a3 25 5e 2f 74 65 73    74 66 73 20 2f 62 6f 6f    |..%^/testfs /boo| 
 0010e220    74 66 73 5f 30 30 34 2e    31 37 31 35 2e 64 61 74    |tfs_004.1715.dat| 
 0010e230    20 65 78 69 74 65 64 20    31 0a 31 30 3a 35 39 3a    | exited 1.10:59:| 
 0010e240    33 35 2e 31 35 20 53 55    43 43 45 53 53 3a 20 7a    |35.15 SUCCESS: z| 
 0010e250    66 73 20 63 72 65 61 74    65 20 25 73 c2 a3 c2 a3    |fs create %s....| 
 0010e260    25 5e 2f 74 65 73 74 66    73 2f 74 65 73 74 66 73    |%^/testfs/testfs| 
 0010e270    20 65 78 69 74 65 64 20    31 0a 31 30 3a 35 39 3a    | exited 1.10:59:| 
 0010e280    33 35 2e 31 35 20 53 55    43 43 45 53 53 3a 20 7a    |35.15 SUCCESS: z| 
 0010e290    70 6f 6f 6c 20 73 65 74    20 62 6f 6f 74 66 73 3d    |pool set bootfs=| 
 0010e2a0    25 73 c2 a3 c2 a3 25 5e    2f 74 65 73 74 66 73 2f    |%s....%^/testfs/| 
 0010e2b0    74 65 73 74 66 73 20 25    73 c2 a3 c2 a3 25 5e 2f    |testfs %s....%^/| 
 0010e2c0    74 65 73 74 66 73 20 65    78 69 74 65 64 20 31 0a    |testfs exited 1.| 
 0010e2d0    31 30 3a 35 39 3a 33 35    2e 31 36 20 53 55 43 43    |10:59:35.16 SUCC| 
 0010e2e0    45 53 53 3a 20 7a 70 6f    6f 6c 20 63 72 65 61 74    |ESS: zpool creat| 
 0010e2f0    65 20 6f 6f 6f 6f 6f 6f    6f 6f 6f 6f 6f 6f 6f 6f    |e oooooooooooooo| 
 0010e300    6f 6f 6f 6f 6f 6f 6f 6f    6f 6f 6f 6f 6f 6f 6f 6f    |oooooooooooooooo| 
 * 
 0010e6f0    6f 6f 6f 6f 2f 74 65 73    74 66 73 20 2f 62 6f 6f    |oooo/testfs /boo| 
 0010e700    74 66 73 5f 30 30 34 2e    31 37 31 35 2e 64 61 74    |tfs_004.1715.dat| 
 0010e710    20 65 78 69 74 65 64 20    31 0a 31 30 3a 35 39 3a    | exited 1.10:59:| 
 0010e720    33 35 2e 31 37 20 53 55    43 43 45 53 53 3a 20 7a    |35.17 SUCCESS: z| 
 0010e730    66 73 20 63 72 65 61 74    65 20 6f 6f 6f 6f 6f 6f    |fs create oooooo| 
 0010e740    6f 6f 6f 6f 6f 6f 6f 6f    6f 6f 6f 6f 6f 6f 6f 6f    |oooooooooooooooo| 
 </pre> 

 apparently, adding errors='replace' to open() does allow the log file    to be processed. 

 Testing done: zfstest -l logfile is now able to work.

Back