diff options
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/gnunet-search.c | 2 | ||||
-rwxr-xr-x | src/fs/test_gnunet_fs_psd.py.in | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/fs/gnunet-search.c b/src/fs/gnunet-search.c index ef1743436..89811669f 100644 --- a/src/fs/gnunet-search.c +++ b/src/fs/gnunet-search.c | |||
@@ -164,7 +164,7 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *info) | |||
164 | info->value.search.specifics.result.meta, | 164 | info->value.search.specifics.result.meta, |
165 | NULL); | 165 | NULL); |
166 | uri = GNUNET_FS_uri_to_string (info->value.search.specifics.result.uri); | 166 | uri = GNUNET_FS_uri_to_string (info->value.search.specifics.result.uri); |
167 | printf ("#%u:\n", cnt++); | 167 | printf ("#%u:\n", ++cnt); |
168 | filename = | 168 | filename = |
169 | GNUNET_CONTAINER_meta_data_get_by_type (info->value.search. | 169 | GNUNET_CONTAINER_meta_data_get_by_type (info->value.search. |
170 | specifics.result.meta, | 170 | specifics.result.meta, |
diff --git a/src/fs/test_gnunet_fs_psd.py.in b/src/fs/test_gnunet_fs_psd.py.in index 2efac58ae..87fcf1130 100755 --- a/src/fs/test_gnunet_fs_psd.py.in +++ b/src/fs/test_gnunet_fs_psd.py.in | |||
@@ -24,6 +24,11 @@ import subprocess | |||
24 | import re | 24 | import re |
25 | import shutil | 25 | import shutil |
26 | 26 | ||
27 | # Force encoding to utf-8, as this test otherwise fails | ||
28 | # on some systems (see #5094). | ||
29 | reload(sys) | ||
30 | sys.setdefaultencoding('utf8') | ||
31 | |||
27 | srcdir = "../.." | 32 | srcdir = "../.." |
28 | gnunet_pyexpect_dir = os.path.join (srcdir, "contrib") | 33 | gnunet_pyexpect_dir = os.path.join (srcdir, "contrib") |
29 | if gnunet_pyexpect_dir not in sys.path: | 34 | if gnunet_pyexpect_dir not in sys.path: |
@@ -62,7 +67,6 @@ try: | |||
62 | s = pexpect () | 67 | s = pexpect () |
63 | s.spawn (None, [search, '-V', '-t', '1000 ms', '-N', '1', '-c', 'test_gnunet_fs_psd_data.conf', 'tst'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) | 68 | s.spawn (None, [search, '-V', '-t', '1000 ms', '-N', '1', '-c', 'test_gnunet_fs_psd_data.conf', 'tst'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) |
64 | s.expect ("stdout", re.compile (r'gnunet-download -o "test_gnunet_fs_rec_data.tgz" gnunet://fs/chk/2ZMHKPV74CB6GB1GFKQRR95BXJQA2SER25FN48GAW7WSBPA0GDEM5Y74V1ZJHM0NA6919TVW376BHTFDRE3RYS0KRY92M1QJVKPHFCR\.49BT3V5C10KA1695JF71FCT8ZZG4JMJSH04BD9CT22R6KEM915A7CEST17RD0QYTHXV5M4HHEGJMEZSFRDB7JAYC0EMJAN2V781E9DG\.17822\r?\n')) | 69 | s.expect ("stdout", re.compile (r'gnunet-download -o "test_gnunet_fs_rec_data.tgz" gnunet://fs/chk/2ZMHKPV74CB6GB1GFKQRR95BXJQA2SER25FN48GAW7WSBPA0GDEM5Y74V1ZJHM0NA6919TVW376BHTFDRE3RYS0KRY92M1QJVKPHFCR\.49BT3V5C10KA1695JF71FCT8ZZG4JMJSH04BD9CT22R6KEM915A7CEST17RD0QYTHXV5M4HHEGJMEZSFRDB7JAYC0EMJAN2V781E9DG\.17822\r?\n')) |
65 | s.expect ("stdout", re.compile (r"\s*description: Test archive\r?\n")) | ||
66 | 70 | ||
67 | down = pexpect () | 71 | down = pexpect () |
68 | down.spawn (None, [download, '-c', 'test_gnunet_fs_psd_data.conf', '-o', 'test_gnunet_fs_rec_data.tar.gz', 'gnunet://fs/chk/2ZMHKPV74CB6GB1GFKQRR95BXJQA2SER25FN48GAW7WSBPA0GDEM5Y74V1ZJHM0NA6919TVW376BHTFDRE3RYS0KRY92M1QJVKPHFCR.49BT3V5C10KA1695JF71FCT8ZZG4JMJSH04BD9CT22R6KEM915A7CEST17RD0QYTHXV5M4HHEGJMEZSFRDB7JAYC0EMJAN2V781E9DG.17822'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) | 72 | down.spawn (None, [download, '-c', 'test_gnunet_fs_psd_data.conf', '-o', 'test_gnunet_fs_rec_data.tar.gz', 'gnunet://fs/chk/2ZMHKPV74CB6GB1GFKQRR95BXJQA2SER25FN48GAW7WSBPA0GDEM5Y74V1ZJHM0NA6919TVW376BHTFDRE3RYS0KRY92M1QJVKPHFCR.49BT3V5C10KA1695JF71FCT8ZZG4JMJSH04BD9CT22R6KEM915A7CEST17RD0QYTHXV5M4HHEGJMEZSFRDB7JAYC0EMJAN2V781E9DG.17822'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) |