Fix #5243
authorNils Gillmann <ng0@n0.is>
Thu, 14 Jun 2018 18:45:15 +0000 (18:45 +0000)
committerNils Gillmann <ng0@n0.is>
Thu, 14 Jun 2018 18:45:15 +0000 (18:45 +0000)
This test has too much boilerplate like the rest and should be fixed by pytest eventually.

Signed-off-by: Nils Gillmann <ng0@n0.is>
src/fs/test_gnunet_fs_psd.py.in

index e3a8db1410990c6f09533db499665c64c26b640a..0e191d4a4b2f870e7362e5121624147f63c923bb 100755 (executable)
@@ -53,6 +53,12 @@ elif os.name == 'nt':
     unindex = './gnunet-unindex.exe'
     search = './gnunet-search.exe'
 
+if "GNUNET_PREFIX" in os.environ:
+    pass
+else:
+    print("You need to export GNUNET_PREFIX")
+    sys.exit(1)
+    
 if os.name == "nt":
     shutil.rmtree(os.path.join(os.getenv("TEMP"), "gnunet-test-fs-py-psd"), True)
 else: