Skip to content

Commit

Permalink
Tests: Fix speed dependent fail in PS_PB6 test
Browse files Browse the repository at this point in the history
- sometimes PS_PB6 acquires sweep 2 as full sweep if the computer is slow.
However the test checked if there are no results.

If there was a full sweep acquired it tests now against existing results.
  • Loading branch information
MichaelHuth committed Sep 23, 2024
1 parent 31e7b5f commit 726a51d
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,12 @@ static Function PS_PB6_REENTRY([str])
CHECK_EQUAL_WAVES(entries[%resistance], resistanceRef, mode = WAVE_DATA)
CHECK_EQUAL_WAVES(entries[%resistancePass], {1, 1, 1}, mode = WAVE_DATA)

CHECK_WAVE(entries[%resultsSweep], NULL_WAVE)
CHECK_WAVE(entries[%resultsResistance], NULL_WAVE)
if(WaveExists(entries[%resultsSweep]))
CHECK_WAVE(entries[%resultsSweep], FREE_WAVE)
CHECK_WAVE(entries[%resultsResistance], FREE_WAVE)
else
CHECK_WAVE(entries[%resultsResistance], NULL_WAVE)
endif

CommonAnalysisFunctionChecks(str, sweepNo, entries[%setPass])
CheckPSQChunkTimes(str, {20, 520})
Expand Down

0 comments on commit 726a51d

Please sign in to comment.