Index: tests/pcbflags/test.sh =================================================================== --- tests/pcbflags/test.sh (revision 5813) +++ tests/pcbflags/test.sh (revision 5814) @@ -67,7 +67,14 @@ return 0 } +diag=`cd "$src_dir" && ./pcb-rnd --dump-plugins | grep diag` +if test -z "$diag" +then + echo "pcbflags: can't run tests because the diag plugin is not compiled." + exit 0 +fi + test_flag "plugins/mincut/enable" "true" "enablemincut" test_flag "editor/show_number" "true" "shownumber" test_flag "editor/show_drc" "true" "showdrc"