Check that device setup is complete before running backup hostside tests.

Backup can only run if device setup is complete.
Check before running backup tests as it's better to fail fast.

Bug: 146480804

Test: atest -v CtsBackupHostTestCases

Test: adb shell settings get secure user_setup_complete 0
atest android.cts.backup.SuccessNotificationHostSideTest#testSuccessNotificationForFullBackup
As expected, this fails with:
x86 CtsBackupHostTestCases (1 Test)
RUNNER ERROR: com.android.tradefed.targetprep.TargetSetupError: Cannot run test as backup as setup is not complete for system user

Change-Id: I8518730d89a42f462e03426ad48926d8697c2640
1 file changed
tree: f7c824a846800915c407bbe8b54a169da4eeb178
  1. build/
  2. common/
  3. tools/
  4. OWNERS
  5. PREUPLOAD.cfg
  6. test_defs.sh