Skip to content

Commit 98f9b22

Browse files
authored
add main script for missing tests (AtsushiSakai#461)
* add main script for missing tests * Fix CodeQL warning
1 parent 2731cdb commit 98f9b22

19 files changed

+71
-5
lines changed

.github/workflows/codeql.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ jobs:
2020
# a pull request then we can checkout the head.
2121
fetch-depth: 2
2222

23-
# If this run was triggered by a pull request event, then checkout
24-
# the head of the pull request instead of the merge commit.
25-
- run: git checkout HEAD^2
26-
if: ${{ github.event_name == 'pull_request' }}
27-
2823
# Initializes the CodeQL tools for scanning.
2924
- name: Initialize CodeQL
3025
uses: github/codeql-action/init@v1

tests/test_lqr_speed_steer_control.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55
def test_1():
66
m.show_animation = False
77
m.main()
8+
9+
10+
if __name__ == '__main__':
11+
conftest.run_this_test(__file__)

tests/test_model_predictive_speed_and_steer_control.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ def test_1():
1212
def test_2():
1313
m.show_animation = False
1414
m.main2()
15+
16+
if __name__ == '__main__':
17+
conftest.run_this_test(__file__)

tests/test_move_to_pose.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55
def test_1():
66
m.show_animation = False
77
m.main()
8+
9+
10+
if __name__ == '__main__':
11+
conftest.run_this_test(__file__)

tests/test_n_joint_arm_to_point_control.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@
99
def test1():
1010
m.show_animation = False
1111
m.animation()
12+
13+
14+
if __name__ == '__main__':
15+
conftest.run_this_test(__file__)

tests/test_particle_filter.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55
def test_1():
66
m.show_animation = False
77
m.main()
8+
9+
10+
if __name__ == '__main__':
11+
conftest.run_this_test(__file__)

tests/test_potential_field_planning.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55
def test1():
66
m.show_animation = False
77
m.main()
8+
9+
10+
if __name__ == '__main__':
11+
conftest.run_this_test(__file__)

tests/test_pure_pursuit.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55
def test1():
66
m.show_animation = False
77
m.main()
8+
9+
10+
if __name__ == '__main__':
11+
conftest.run_this_test(__file__)

tests/test_quintic_polynomials_planner.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55
def test1():
66
m.show_animation = False
77
m.main()
8+
9+
10+
if __name__ == '__main__':
11+
conftest.run_this_test(__file__)

tests/test_raycasting_grid_map.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55
def test1():
66
m.show_animation = False
77
m.main()
8+
9+
10+
if __name__ == '__main__':
11+
conftest.run_this_test(__file__)

0 commit comments

Comments
 (0)