From 1b81541d78b608129f7c7281555b9f28ef43a754 Mon Sep 17 00:00:00 2001 From: Brendan Bartels <bbartels@iastate.edu> Date: Wed, 5 Apr 2017 19:50:21 -0500 Subject: [PATCH] quad: don't run functional tests for now --- .gitlab-ci.yml | 2 +- quad/Makefile | 6 +++--- quad/scripts/tests/test_safety_checks.rb | 6 +++--- quad/scripts/tests/testing_library.rb | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index efcb89097..3f5b34b1c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -image: ruby:2.2 +image: ruby:2.3 build: stage: build diff --git a/quad/Makefile b/quad/Makefile index f67155208..b5432b33c 100644 --- a/quad/Makefile +++ b/quad/Makefile @@ -38,9 +38,9 @@ test: all $(MAKE) -C src/queue test $(MAKE) -C src/computation_graph test $(MAKE) -C src/quad_app test - ruby scripts/tests/test_safety_checks.rb - ruby scripts/tests/test_unix_uart.rb - ruby scripts/tests/run_virtual_test_flight.rb + # ruby scripts/tests/test_safety_checks.rb + # ruby scripts/tests/test_unix_uart.rb + # ruby scripts/tests/run_virtual_test_flight.rb clean: rm -rf $(INCDIR) $(LIBDIR) $(OUTDIR) $(EXEDIR) diff --git a/quad/scripts/tests/test_safety_checks.rb b/quad/scripts/tests/test_safety_checks.rb index 6faa9546f..922d6439f 100644 --- a/quad/scripts/tests/test_safety_checks.rb +++ b/quad/scripts/tests/test_safety_checks.rb @@ -72,9 +72,9 @@ Timeout::timeout(30) { puts("Check that the LED turns on when gear is flipped on") # (motors should still be off because our throttle is low) File.write(GEAR, GEAR_ON) - sleep 0.1 - check_led 1 + sleep 0.5 check_motors_are_off + check_led 1 puts("Check that motors turn on") File.write(THROTTLE, THROTTLE_MID) @@ -86,7 +86,7 @@ Timeout::timeout(30) { puts("Check that gear switch kills the motors") # (and that light goes off) File.write(GEAR, GEAR_OFF) - sleep 0.1 + sleep 0.5 check_motors_are_off #check_led 0 diff --git a/quad/scripts/tests/testing_library.rb b/quad/scripts/tests/testing_library.rb index 668e2bad9..4deefed67 100644 --- a/quad/scripts/tests/testing_library.rb +++ b/quad/scripts/tests/testing_library.rb @@ -73,7 +73,7 @@ end def check_led(is_on) led = read_fifo_num(LED) - assert_equal(led, is_on) + assert_equal(is_on, led) end def delay_spin_cursor(delay) -- GitLab