Skip to content

Commit 071f064

Browse files
authored
CI: OHOS: Better test for hdc device connected (#42365)
Use a different method to test for phone being connected to the CI. Fixes: #42335 --------- Signed-off-by: Narfinger <[email protected]>
1 parent 936aaf1 commit 071f064

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ohos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ jobs:
280280
name: servoshell-hos-${{ inputs.profile }}.hap
281281
- name: Test hdc device
282282
# First we ensure a device is actually connected and working.
283-
run: hdc list targets && hdc shell echo hello world
283+
run: ! hdc list targets | grep -q Empty
284284
- name: Sign the hap
285285
run: |
286286
ls -la
@@ -415,7 +415,7 @@ jobs:
415415
name: servoshell-hos-${{ inputs.profile }}.hap
416416
- name: Test hdc device
417417
# First we ensure a device is actually connected and working.
418-
run: hdc list targets && hdc shell echo hello world
418+
run: ! hdc list targets | grep -q Empty
419419
- name: Sign the hap
420420
run: |
421421
ls -la

0 commit comments

Comments
 (0)