Skip to content

Commit

Permalink
LTE test harness: Moved release of Tx and Rx system objects to a meth…
Browse files Browse the repository at this point in the history
…od under TestMethodTeardown methods block.

Signed-off-by: Srikanth Pagadarai <srikanth.pagadarai@analog.com>
  • Loading branch information
SrikanthPagadarai committed Mar 10, 2021
1 parent 928450c commit 84d4572
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/LTE_Tests/LTETests.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ function addpaths(testCase)
end
end

methods (TestMethodTeardown)
function releaseHW(testCase)
% release Tx and Rx system objects
release(testCase.Tx);
release(testCase.Rx);
end
end

methods (Static, Access = protected)
function SamplesPerFrame = setRxSamplesPerFrame(BW)
switch (BW)
Expand Down Expand Up @@ -114,10 +122,6 @@ function RunTest(testCase, TxClass, RxClass)

% validate and record log data
testCase.ValidateEVM();

% release Tx and Rx system objects
release(testCase.Tx);
release(testCase.Rx);
end
end
end

0 comments on commit 84d4572

Please sign in to comment.