Skip to content

Commit 77508d2

Browse files
committed
fix test script
1 parent e25ae57 commit 77508d2

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

tests/test.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
#!/bin/bash
22

3-
# rustup to test with latest rust version
4-
rustup update
3+
# run rustup to test with latest rust version
4+
/root/.cargo/bin/rustup update
5+
6+
if [ -e "/opt/ros/humble/setup.bash" ]; then
7+
source $ROS
8+
fi
9+
if [ -e "/opt/ros/galactic/setup.bash" ]; then
10+
source $ROS
11+
fi
12+
if [ -e "/opt/ros/foxy/setup.bash" ]; then
13+
source $ROS
14+
fi
515

616
cd /r2r/
717
/root/.cargo/bin/cargo test

0 commit comments

Comments
 (0)