To be fair to the Swiss though, they were harsher on German aircraft violating their airspace than they were on allied aircraft, in spite of allies having bombed one Swiss town by accident thinking it was a nearby German town.
Add to that that the Swiss had some internal issues too. Since a large portion of Swiss are in fact ethnically German, at least some of them were sympathetic towards Anschlus with Germany. The Swiss military kept such sympathisers under control by giving them more menial jobs to keep them out of key positions. Clearly under such conditions, going to war with Nazi Germany could have been risky as the loyalty of some of their own soliders was in question. Looking at it that way, the Swiss were in a fragile position, having to question the loyalty of some in their own country and even army, while at the same time eventually becoming surrounded by Nazi-occupied countries and being dependent on imports for food and especially petroleum.
To be fair to the Swiss, under such conditions, militarized neutrality and free trade was a wise decision under the circumstances. Over all though, unofficially the Swiss were hoping for an allied victory against the Nazis.