parent
2b20479a5c
commit
a1d4dd3adc
|
@ -84,6 +84,7 @@ echo -n "1" > /data/params/d/CommunityFeaturesToggle
|
|||
|
||||
PYTHONPATH="$TARGET_DIR:$TARGET_DIR/pyextra" nosetests -s selfdrive/test/test_openpilot.py
|
||||
PYTHONPATH="$TARGET_DIR:$TARGET_DIR/pyextra" GET_CPU_USAGE=1 selfdrive/manager.py
|
||||
PYTHONPATH="$TARGET_DIR:$TARGET_DIR/pyextra" selfdrive/car/tests/test_car_interfaces.py
|
||||
|
||||
echo "[-] testing panda build T=$SECONDS"
|
||||
pushd panda/board/
|
||||
|
|
|
@ -44,12 +44,22 @@ popd
|
|||
ln -sfn /data/openpilot /data/pythonpath
|
||||
export PYTHONPATH="/data/openpilot:/data/openpilot/pyextra"
|
||||
SCONS_CACHE=1 scons -j3
|
||||
|
||||
# Run tests
|
||||
nosetests -s selfdrive/test/test_openpilot.py
|
||||
selfdrive/car/tests/test_car_interfaces.py
|
||||
|
||||
# Cleanup
|
||||
find . -name '*.a' -delete
|
||||
find . -name '*.o' -delete
|
||||
find . -name '*.os' -delete
|
||||
find . -name '*.pyc' -delete
|
||||
find . -name '__pycache__' -delete
|
||||
rm .sconsign.dblite
|
||||
|
||||
# Restore phonelibs
|
||||
git checkout phonelibs/
|
||||
|
||||
# Mark as prebuilt release
|
||||
touch prebuilt
|
||||
|
||||
|
@ -57,6 +67,9 @@ touch prebuilt
|
|||
git add -f .
|
||||
git commit --amend -m "openpilot v$VERSION"
|
||||
|
||||
# Print committed files that are normally gitignored
|
||||
#git status --ignored
|
||||
|
||||
# Push to release2-staging
|
||||
git push -f origin release2-staging
|
||||
|
||||
|
|
Loading…
Reference in New Issue