selftests/powerpc: Hoist helper code out of eeh-basic

Hoist some of the useful test environment checking and prep code into
eeh-functions.sh so they can be reused in other tests.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201103044503.917128-1-oohall@gmail.com
This commit is contained in:
Oliver O'Halloran 2020-11-03 15:45:01 +11:00 • committed by Michael Ellerman
commit db82f7097c
2 changed files with 51 additions and 36 deletions