소스 검색

only test examples which have a main.py

Rodja Trappe 2 년 전
부모
커밋
6115995bfe
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      test_startup.sh

+ 3 - 1
test_startup.sh

@@ -31,6 +31,8 @@ error=0
 check main.py || error=1
 for path in examples/*
 do
-    check $path/main.py || error=1
+    if test -f $path/main.py; then
+        check $path/main.py || error=1
+    fi
 done
 test $error -eq 0