Skip to content

Commit

Permalink
Fix for flaky DNS test in the switch setup (#918)
Browse files Browse the repository at this point in the history
  • Loading branch information
grafnu authored Aug 31, 2021
1 parent c6b5e01 commit aeab2cc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion testing/test_switch.out
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ RESULT skip base.startup.dhcp Using external DHCP
RESULT skip base.switch.ping No local IP has been set, check system config
RESULT pass connection.base.target_ping target reached %% 10.20.99.164
RESULT skip base.startup.ntp No NTP traffic detected %% NTP server 10.20.99.2
RESULT skip base.startup.dns No DNS traffic detected %% DNS server 10.20.99.2
9a:02:57:1e:8f:02 Unique IPs: 1
9a02571e8f03: ['9a02571e8f03:acquire:TimeoutError']
%%%%%%%%%%%%%%%%%%%%%% Native gauge test
Expand Down
2 changes: 1 addition & 1 deletion testing/test_switch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fgrep "Started faucet pid" inst/cmdrun.log
fgrep 'Learning 9a:02:57:1e:8f:01 on vid 1002' inst/cmdrun.log | head -1 | redact | tee -a $TEST_RESULTS
unique_ips=$(fgrep '10.20.99' inst/run-9a02571e8f01/scans/ip_triggers.txt | awk '{print $1}' | sort | uniq | wc -l)
echo 9a:02:57:1e:8f:01 Unique IPs: $unique_ips | tee -a $TEST_RESULTS
fgrep 'RESULT ' inst/run-9a02571e8f01/nodes/ping*/activate.log | tee -a $TEST_RESULTS
fgrep 'RESULT ' inst/run-9a02571e8f01/nodes/ping*/activate.log | fgrep -v DNS | tee -a $TEST_RESULTS

unique_ips=$(fgrep '10.20.1' inst/run-9a02571e8f02/scans/ip_triggers.txt | awk '{print $1}' | sort | uniq | wc -l)
echo 9a:02:57:1e:8f:02 Unique IPs: $unique_ips | tee -a $TEST_RESULTS
Expand Down

0 comments on commit aeab2cc

Please sign in to comment.