mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
Updates image to v6 (#278)
Added exports of the environment variables set in the frcRunRobot script to prevent fork calls.
This commit is contained in:
committed by
Peter Johnson
parent
3784b665de
commit
4c1e4fd80c
@@ -169,11 +169,15 @@ fi
|
||||
# Setup the driver station to enable automatically in 10 seconds without waiting for the function to excecute.
|
||||
enableIn10Seconds&
|
||||
|
||||
# Get the serial number and FPGADeviceCode for this rio
|
||||
export serialnum=`/sbin/fw_printenv -n serial#`
|
||||
export eval `/sbin/fw_printenv DeviceCode FPGADeviceCode DeviceDesc TargetClass`
|
||||
|
||||
# Store the run command for the language
|
||||
RUN_COMMAND=none
|
||||
if [[ ${LANGUAGE} = java ]]; then
|
||||
chmod a+x ${DEFAULT_JAVA_TEST_NAME}
|
||||
RUN_COMMAND="env LD_LIBRARY_PATH=/usr/local/frc/rpath-lib/ ${DEFAULT_PATH_TO_JRE} -ea -jar ${DEFAULT_JAVA_TEST_NAME} ${TEST_RUN_ARGS}"
|
||||
RUN_COMMAND="env LD_LIBRARY_PATH=/opt/GenICam_v3_0_NI/bin/Linux32_ARM/ ${DEFAULT_PATH_TO_JRE} -ea -jar ${DEFAULT_JAVA_TEST_NAME} ${TEST_RUN_ARGS}"
|
||||
elif [[ ${LANGUAGE} = cpp ]]; then
|
||||
chmod a+x ${DEFAULT_CPP_TEST_NAME}
|
||||
RUN_COMMAND="./${DEFAULT_CPP_TEST_NAME} ${TEST_RUN_ARGS}"
|
||||
|
||||
Reference in New Issue
Block a user