fixed error check using the wrong error value

errorOut was using the err from the previous test.

Signed-off-by: Frank Rosquin <frank.rosquin@gmail.com>
Merge pull request #7816 from cnf/fix_cli_top_test

fixed error check using the wrong error value
Fixed error check using the wrong error value

errorOut was using the err from the previous test.
same as #7816 but on TestTopPrivileged, which I missed last time

Signed-off-by: Frank Rosquin <frank.rosquin@gmail.com>
Merge pull request #7817 from cnf/fix_cli_top_test_priv

Fixed error check using the wrong error value