Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Bug 929636 - Python set device tests to fail on device type, remove f…
Browse files Browse the repository at this point in the history
…inal traces of xfail. r=dhunt r=rwood
  • Loading branch information
Zac Campbell authored and davehunt committed Oct 25, 2013
1 parent d7696ab commit afbf45f
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 25 deletions.
3 changes: 1 addition & 2 deletions tests/python/gaia-ui-tests/README.md
Expand Up @@ -114,7 +114,7 @@ Add the line `user_pref('marionette.force-local', true);` to your gaia/profile/u

Because we’re running against the desktop client we must filter out all tests that are unsuitable. To run the tests, use the following command:

`gaiatest --address=localhost:2828 --type=b2g-antenna-bluetooth-carrier-camera-sdcard-wifi-xfail gaiatest/tests/manifest.ini`
`gaiatest --address=localhost:2828 --type=b2g-antenna-bluetooth-carrier-camera-sdcard-wifi gaiatest/tests/manifest.ini`

You should then start to see the tests running.

Expand All @@ -139,7 +139,6 @@ Here is a list of the types used, and when to use them:
* qemu - these tests require the Firefox OS emulator to run.
* sdcard - a storage device must be present.
* wifi - this means a WiFi connection is required.
* xfail - a special type that indicates the test is expected to fail.

You may be thinking that there is only WiFi or cell data, and why the need for the 'lan' test type. Well, these tests
aren't only run on mobile devices... We also run then on single-board computers known as
Expand Down
Expand Up @@ -10,7 +10,6 @@ online = false
offline = false
wifi = false
camera = false
xfail = false
panda = true

[test_endurance_background_apps.py]
Expand Down
Expand Up @@ -2,7 +2,6 @@
b2g = true
carrier = false
online = true
xfail = false

[test_browser_cell_data.py]
skip-if = device == "desktop"
Expand All @@ -15,7 +14,7 @@ lan = true
[test_browser_navigation.py]
[test_browser_bookmark.py]
# Bug 930545 - [Browser] Adding a bookmark to home screen test fails
fail-if = true
expected = fail
[test_browser_play_youtube_video.py]
# Bug 877594 - Unable to play YouTube video in B2G desktop client
fail-if = device == "desktop"
Expand Down
Expand Up @@ -2,5 +2,4 @@

[test_calendar_today_date.py]
[test_calendar_new_event_appears_on_all_calendar_views.py]
# Bug #877611 - Make "Select time" popup, in Calendar app, more test friendly
xfail = true
disabled = Bug 877611 - Make "Select time" popup, in Calendar app, more test friendly
Expand Up @@ -9,5 +9,5 @@ skip-if = device == "desktop"
skip-if = device == "desktop"
[test_camera_multiple_shots.py]
skip-if = device == "desktop"
# Bug 911387 [Camera] Frequent "Picture not saved errors" when running nightly
xfail = true
# Bug 911387 [Camera] Frequent "Picture not saved errors" when running nightly on Hamachi
fail-if = device == "msm7627a"
@@ -1,7 +1,6 @@
[DEFAULT]
# Test requires B2G
b2g = true
xfail = false

[test_clock_all_items_present_new_alarm.py]
[test_clock_create_new_alarm.py]
Expand All @@ -13,5 +12,4 @@ xfail = false
[test_clock_set_alarm_sound.py]
[test_clock_set_alarm_snooze.py]
[test_clock_set_alarm_time.py]
# Bug 877611 - Make "Select time" popup, in Calendar app, more test friendly
xfail = true
disabled = Bug 877611 - Make "Select time" popup, in Calendar app, more test friendly
Expand Up @@ -14,7 +14,7 @@ carrier = true
skip-if = device == "desktop"
sdcard = true
# Bug 921205 - [B2G][Contacts]User unable to add picture from gallery to New Contact consistently
xfail = true
expected = fail

[test_sort_contacts.py]

Expand Down
Expand Up @@ -15,6 +15,6 @@ skip-if = device == "desktop"
[test_gallery_edit_photo.py]
skip-if = device == "desktop"
# Bug 915876 - [B2G] [Buri] [1.2] [Gallery] Attempts to edit pictures do not get saved
xfail = true
expected = fail
[test_gallery_return_to_tile_view.py]
skip-if = device == "desktop"
Expand Up @@ -5,7 +5,6 @@ online = true

offline = false

xfail = false

[test_marketplace_login.py]
[test_marketplace_search_and_install_app.py]
Expand All @@ -15,9 +14,8 @@ offline = true
online = true
[test_marketplace_search_for_paid_apps.py]
# Bug 859484 - [B2G] Free app appearing in paid filtered search results
xfail = true
# Filter functionality has been removed
disabled = true
expected = fail
disabled = Filter functionality has been removed
[test_marketplace_add_review.py]
[test_marketplace_feedback_anonymous.py]
[test_marketplace_feedback_login.py]
Expand Down
Expand Up @@ -2,7 +2,7 @@
skip-if = device == "desktop"
sdcard = true
# Bug 862156 - Marionette thinks that the play button in the music app is not displayed
xfail = true
expected = fail
[test_music_empty.py]
skip-if = device == "desktop"
sdcard = true
@@ -1,6 +1,5 @@
[DEFAULT]
b2g = true
xfail = false

[test_settings_change_language.py]
[test_settings_gps.py]
Expand Down
Expand Up @@ -20,4 +20,4 @@ sdcard = true
skip-if = device == "desktop"
sdcard = true
# Bug 874897 - Video player can't identify mp4 and ogg files on the SD card
xfail = true
expected = fail
3 changes: 0 additions & 3 deletions tests/python/gaia-ui-tests/gaiatest/tests/manifest.ini
Expand Up @@ -32,9 +32,6 @@ wifi = false
# Test requires a hardware camera
camera = false

# Expected to fail
xfail = false

# Unit test
unit = false

Expand Down
2 changes: 1 addition & 1 deletion tests/travis_ci/gaia_ui_tests/script
Expand Up @@ -10,5 +10,5 @@ gaiatest="python $root/cli.py"
$gaiatest --app=b2gdesktop \
--binary=$b2g \
--profile=$profile \
--type=b2g-xfail \
--type=b2g \
--restart $root/tests/manifest.ini

0 comments on commit afbf45f

Please sign in to comment.