74065fa raise error when config search paths is empty

Authored and Committed by julian8628 4 years ago
    raise error when config search paths is empty
    
    also fix unittest: test_profiles
    
    notes: since the test won't read config files anymore, lift the loop number from 20 -> 256 to increase the probability of hitting the multithread issue
    
    fixes: #1786
    
        
file modified
+3 -2