Skip to content

Commit

Permalink
[smoke_tests] Bring smoke tests up to date with new pause defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
willprice authored and Will Price committed Nov 13, 2016
1 parent 224b24c commit 280b32f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion smoke_tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


print(TEST_MEDIA_FILE_1)
vid1 = OMXPlayer(TEST_MEDIA_FILE_1)
vid1 = OMXPlayer(TEST_MEDIA_FILE_1, pause=True)
print("Start playing")
vid1.set_position(5)
vid1.play()
Expand Down
9 changes: 6 additions & 3 deletions smoke_tests/test2.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,24 @@

vid1 = OMXPlayer(TEST_MEDIA_FILE_1)
print("Start playing vid1")
vid1.play()
sleep(2)
sleep(5)

print("Stop playing vid1")
vid1.pause()
sleep(2)

print("Exit vid1")
vid1.quit()
sleep(1)


vid2 = OMXPlayer(TEST_MEDIA_FILE_2)
print("Start playing vid2")
vid2.play()
sleep(2)

print("Stop playing vid2")
vid2.pause()
sleep(2)

print("Exit vid2")
vid2.quit()
4 changes: 2 additions & 2 deletions smoke_tests/test_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from omxplayer import OMXPlayer
from smoke_tests import TEST_MEDIA_FILE_1, TEST_MEDIA_FILE_2

player = OMXPlayer(TEST_MEDIA_FILE_1)
player = OMXPlayer(TEST_MEDIA_FILE_1, pause=True)
print("Start playing vid1")
player.play()
sleep(2)
Expand All @@ -13,7 +13,7 @@
sleep(2)


player.load(TEST_MEDIA_FILE_2)
player.load(TEST_MEDIA_FILE_2, pause=True)
print("Start playing vid2")
player.play()
sleep(2)
Expand Down

0 comments on commit 280b32f

Please sign in to comment.