mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
A PDP channel number is correct now, the deploy script was changed to kill Java programs before running and ignore useless messages, the "Waiting for enable" message is only printed once, and the accelerometer test is more robust. Change-Id: I2226140d8c3e44c452e039c27f4f1cf11c952c42
19 lines
689 B
Bash
Executable File
19 lines
689 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Temporary method to deploy C++ integration tests to the RoboRIO
|
|
|
|
if [ $(which sshpass) ]
|
|
then
|
|
# Send stderr to /dev/null - the only thing printed to it is the login prompt
|
|
sshpass -p "" ssh admin@10.1.90.2 killall FRCUserProgram java 2> /dev/null
|
|
sshpass -p "" scp target/cmake/wpilibc/wpilibC++IntegrationTests/FRCUserProgram admin@10.1.90.2:/home/admin 2> /dev/null
|
|
sshpass -p "" ssh admin@10.1.90.2 ./FRCUserProgram --gtest_color=yes $* 2> /dev/null
|
|
else
|
|
ssh admin@10.1.90.2 killall FRCUserProgram
|
|
scp target/cmake/wpilibc/wpilibC++IntegrationTests/FRCUserProgram admin@10.1.90.2:/home/admin
|
|
ssh admin@10.1.90.2 ./FRCUserProgram --gtest_color=yes $*
|
|
fi
|
|
|
|
|
|
|