Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ultimately, I ran the Raptor unitests (pytest) in Python 2.7, via:
- [sdonner@STEPHENs-MacBook-Pro ~/moz_src/mozilla-unified] $ ./mach python-test testing/raptor/test/
- (plus setup & install magic, first)
- 1073 cd raptor/
- 1074 tox
- 1075 ls
- 1076 pytest
- 1077 pip install pytest
- 1078 pytest
- 1079 ls
- 1080 clear
- 1081 ls
- 1082 clear
- 1083 ./mach python-test --python=3.7
- 1084 cd ..
- 1085 cd ..
- 1086 ./mach
- 1087 ./mach python-test --python=3.5 testing/raptor/test
- 1088 ./mach python-test --python=3.7 testing/raptor/test
- 1089 ./mach python-test --python=3.7 testing/raptor/test/
- 1090 py.test
- 1091 python
- 1092 ./mach python-test --python=2.7 testing/raptor/test/
- 1093 ./mach python-test --python=2.7 testing/raptor/test/history
- 1094 history
- [sdonner@STEPHENs-MacBook-Pro ~/moz_src/mozilla-unified] $ which python
- /usr/local/bin/python
- [sdonner@STEPHENs-MacBook-Pro ~/moz_src/mozilla-unified] $ python -V
- Python 2.7.16
- [sdonner@STEPHENs-MacBook-Pro ~/moz_src/mozilla-unified] $ ./mach python-test testing/raptor/test/
- Warning: Your Pipfile requires python_version 3.7, but you are using 2.7.16 (/Users/s/m/m/o/_/m/bin/python).
- $ pipenv check will surely fail.
- running build_ext
- copying build/lib.macosx-10.14-x86_64-2.7/psutil/_psutil_osx.so -> psutil
- copying build/lib.macosx-10.14-x86_64-2.7/psutil/_psutil_posix.so -> psutil
- Error processing command. Ignoring because optional. (optional:packages.txt:comm/build/virtualenv_packages.txt)
- 0:03.75 /Users/sdonner/moz_src/mozilla-unified/testing/raptor/test/test_utils.py
- 0:03.75 ============================= test session starts ==============================
- 0:03.75 platform darwin -- Python 2.7.16, pytest-3.6.2, py-1.5.4, pluggy-0.6.0 -- /Users/sdonner/moz_src/mozilla-unified/obj-x86_64-apple-darwin18.7.0/_virtualenvs/mozilla-unified-HLUrzrrU-2.7/bin/python
- 0:03.75 rootdir: /Users/sdonner/moz_src/mozilla-unified, inifile: /Users/sdonner/moz_src/mozilla-unified/config/mozunit/mozunit/pytest.ini
- 0:03.75 collecting ... collected 7 items
- 0:03.76
- 0:03.76 testing/raptor/test/test_utils.py::test_transform_platform[win] PASSED
- 0:03.76 testing/raptor/test/test_utils.py::test_transform_platform[mac] PASSED
- 0:03.76 testing/raptor/test/test_utils.py::test_transform_platform[linux64] PASSED
- 0:03.76 testing/raptor/test/test_utils.py::test_transform_platform_no_change PASSED
- 0:03.76 testing/raptor/test/test_utils.py::test_transform_platform_processor[x86_64] PASSED
- 0:03.76 testing/raptor/test/test_utils.py::test_transform_platform_processor[other] PASSED
- 0:03.76 testing/raptor/test/test_utils.py::test_write_yml_file PASSED
- 0:03.76
- 0:03.76 =========================== 7 passed in 0.02 seconds ===========================
- 0:03.78 /Users/sdonner/moz_src/mozilla-unified/testing/raptor/test/test_cpu.py
- 0:03.78 ============================= test session starts ==============================
- 0:03.78 platform darwin -- Python 2.7.16, pytest-3.6.2, py-1.5.4, pluggy-0.6.0 -- /Users/sdonner/moz_src/mozilla-unified/obj-x86_64-apple-darwin18.7.0/_virtualenvs/mozilla-unified-HLUrzrrU-2.7/bin/python
- 0:03.78 rootdir: /Users/sdonner/moz_src/mozilla-unified, inifile: /Users/sdonner/moz_src/mozilla-unified/config/mozunit/mozunit/pytest.ini
- 0:03.78 collecting ... collected 4 items
- 0:03.78
- 0:03.78 testing/raptor/test/test_cpu.py::test_no_device PASSED
- 0:03.78 testing/raptor/test/test_cpu.py::test_usage_with_invalid_data_returns_zero PASSED
- 0:03.78 testing/raptor/test/test_cpu.py::test_usage_with_output PASSED
- 0:03.78 testing/raptor/test/test_cpu.py::test_usage_with_fallback PASSED
- 0:03.78
- 0:03.78 =========================== 4 passed in 0.05 seconds ===========================
- 0:03.79 /Users/sdonner/moz_src/mozilla-unified/testing/raptor/test/test_cmdline.py
- 0:03.79 ============================= test session starts ==============================
- 0:03.79 platform darwin -- Python 2.7.16, pytest-3.6.2, py-1.5.4, pluggy-0.6.0 -- /Users/sdonner/moz_src/mozilla-unified/obj-x86_64-apple-darwin18.7.0/_virtualenvs/mozilla-unified-HLUrzrrU-2.7/bin/python
- 0:03.79 rootdir: /Users/sdonner/moz_src/mozilla-unified, inifile: /Users/sdonner/moz_src/mozilla-unified/config/mozunit/mozunit/pytest.ini
- 0:03.79 collecting ... collected 1 item
- 0:03.79
- 0:03.79 testing/raptor/test/test_cmdline.py::test_verify_options PASSED
- 0:03.79
- 0:03.79 =========================== 1 passed in 0.01 seconds ===========================
- 0:03.79 /Users/sdonner/moz_src/mozilla-unified/testing/raptor/test/test_print_tests.py
- 0:03.79 ============================= test session starts ==============================
- 0:03.79 platform darwin -- Python 2.7.16, pytest-3.6.2, py-1.5.4, pluggy-0.6.0 -- /Users/sdonner/moz_src/mozilla-unified/obj-x86_64-apple-darwin18.7.0/_virtualenvs/mozilla-unified-HLUrzrrU-2.7/bin/python
- 0:03.79 rootdir: /Users/sdonner/moz_src/mozilla-unified, inifile: /Users/sdonner/moz_src/mozilla-unified/config/mozunit/mozunit/pytest.ini
- 0:03.79 collecting ... collected 1 item
- 0:03.79
- 0:03.79 testing/raptor/test/test_print_tests.py::test_pageload_subtests PASSED
- 0:03.79
- 0:03.79 =========================== 1 passed in 0.01 seconds ===========================
- 0:04.21 /Users/sdonner/moz_src/mozilla-unified/testing/raptor/test/test_manifest.py
- 0:04.21 ============================= test session starts ==============================
- 0:04.21 platform darwin -- Python 2.7.16, pytest-3.6.2, py-1.5.4, pluggy-0.6.0 -- /Users/sdonner/moz_src/mozilla-unified/obj-x86_64-apple-darwin18.7.0/_virtualenvs/mozilla-unified-HLUrzrrU-2.7/bin/python
- 0:04.21 rootdir: /Users/sdonner/moz_src/mozilla-unified, inifile: /Users/sdonner/moz_src/mozilla-unified/config/mozunit/mozunit/pytest.ini
- 0:04.21 collecting ... collected 33 items
- 0:04.21
- 0:04.21 testing/raptor/test/test_manifest.py::test_get_browser_test_list[firefox] PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_get_browser_test_list[chrome] PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_get_browser_test_list[chromium] PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_get_browser_test_list[geckoview] PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_get_browser_test_list[refbrow] PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_get_browser_test_list[fenix] PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_validate_test_ini_valid[test_details0] PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_validate_test_ini_valid[test_details1] PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_validate_test_ini_valid[test_details2] PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_validate_test_ini_valid[test_details3] PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_validate_test_ini_valid[test_details4] PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_validate_test_ini_invalid[test_details0] PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_validate_test_ini_invalid[test_details1] PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_validate_test_ini_invalid[test_details2] PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_validate_test_ini_invalid[test_details3] PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_get_raptor_test_list_firefox PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_get_raptor_test_list_chrome PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_get_raptor_test_list_geckoview PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_get_raptor_test_list_gecko_profiling_enabled PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_get_raptor_test_list_gecko_profiling_enabled_args_override PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_get_raptor_test_list_gecko_profiling_disabled PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_get_raptor_test_list_gecko_profiling_disabled_args_override PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_get_raptor_test_list_debug_mode PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_get_raptor_test_list_override_page_cycles PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_get_raptor_test_list_override_page_timeout PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_get_raptor_test_list_add_test_url_params PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_get_raptor_test_list_refbrow PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_get_raptor_test_list_fenix PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_add_test_url_params_with_single_extra_param PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_add_test_url_params_with_multiple_extra_param PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_add_test_url_params_without_params_in_url PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_add_test_url_params_overwrites_single_param PASSED
- 0:04.21 testing/raptor/test/test_manifest.py::test_add_test_url_params_overwrites_multiple_param PASSED
- 0:04.21
- 0:04.21 ========================== 33 passed in 0.48 seconds ===========================
- 0:04.79 /Users/sdonner/moz_src/mozilla-unified/testing/raptor/test/test_control_server.py
- 0:04.79 ============================= test session starts ==============================
- 0:04.79 platform darwin -- Python 2.7.16, pytest-3.6.2, py-1.5.4, pluggy-0.6.0 -- /Users/sdonner/moz_src/mozilla-unified/obj-x86_64-apple-darwin18.7.0/_virtualenvs/mozilla-unified-HLUrzrrU-2.7/bin/python
- 0:04.79 rootdir: /Users/sdonner/moz_src/mozilla-unified, inifile: /Users/sdonner/moz_src/mozilla-unified/config/mozunit/mozunit/pytest.ini
- 0:04.79 collecting ... collected 3 items
- 0:04.79
- 0:04.79 testing/raptor/test/test_control_server.py::test_start_and_stop PASSED
- 0:04.79 testing/raptor/test/test_control_server.py::test_server_get_timeout PASSED
- 0:04.79 testing/raptor/test/test_control_server.py::test_server_android_app_backgrounding PASSED
- 0:04.79
- 0:04.79 =========================== 3 passed in 1.06 seconds ===========================
- 0:05.90 /Users/sdonner/moz_src/mozilla-unified/testing/raptor/test/test_power.py
- 0:05.90 ============================= test session starts ==============================
- 0:05.90 platform darwin -- Python 2.7.16, pytest-3.6.2, py-1.5.4, pluggy-0.6.0 -- /Users/sdonner/moz_src/mozilla-unified/obj-x86_64-apple-darwin18.7.0/_virtualenvs/mozilla-unified-HLUrzrrU-2.7/bin/python
- 0:05.90 rootdir: /Users/sdonner/moz_src/mozilla-unified, inifile: /Users/sdonner/moz_src/mozilla-unified/config/mozunit/mozunit/pytest.ini
- 0:05.90 collecting ... collected 3 items
- 0:05.90
- 0:05.90 testing/raptor/test/test_power.py::test_android7_power PASSED
- 0:05.90 testing/raptor/test/test_power.py::test_android8_power PASSED
- 0:05.90 testing/raptor/test/test_power.py::test_androidos_baseline_power PASSED
- 0:05.90
- 0:05.91 =========================== 3 passed in 0.05 seconds ===========================
- 0:05.92 /Users/sdonner/moz_src/mozilla-unified/testing/raptor/test/test_playback.py
- 0:05.92 ============================= test session starts ==============================
- 0:05.92 platform darwin -- Python 2.7.16, pytest-3.6.2, py-1.5.4, pluggy-0.6.0 -- /Users/sdonner/moz_src/mozilla-unified/obj-x86_64-apple-darwin18.7.0/_virtualenvs/mozilla-unified-HLUrzrrU-2.7/bin/python
- 0:05.92 rootdir: /Users/sdonner/moz_src/mozilla-unified, inifile: /Users/sdonner/moz_src/mozilla-unified/config/mozunit/mozunit/pytest.ini
- 0:05.92 collecting ... collected 3 items
- 0:05.93
- 0:05.93 testing/raptor/test/test_playback.py::test_get_playback PASSED
- 0:05.93 testing/raptor/test/test_playback.py::test_get_unsupported_playback PASSED
- 0:05.93 testing/raptor/test/test_playback.py::test_get_playback_missing_tool_name PASSED
- 0:05.93
- 0:05.93 =========================== 3 passed in 2.21 seconds ===========================
- 1:16.70 /Users/sdonner/moz_src/mozilla-unified/testing/raptor/test/test_raptor.py
- 1:16.70 ============================= test session starts ==============================
- 1:16.70 platform darwin -- Python 2.7.16, pytest-3.6.2, py-1.5.4, pluggy-0.6.0 -- /Users/sdonner/moz_src/mozilla-unified/obj-x86_64-apple-darwin18.7.0/_virtualenvs/mozilla-unified-HLUrzrrU-2.7/bin/python
- 1:16.70 rootdir: /Users/sdonner/moz_src/mozilla-unified, inifile: /Users/sdonner/moz_src/mozilla-unified/config/mozunit/mozunit/pytest.ini
- 1:16.70 collecting ... collected 10 items
- 1:16.70
- 1:16.70 testing/raptor/test/test_raptor.py::test_build_profile[RaptorDesktopFirefox-firefox] PASSED
- 1:16.70 testing/raptor/test/test_raptor.py::test_build_profile[RaptorDesktopChrome-chrome] PASSED
- 1:16.70 testing/raptor/test/test_raptor.py::test_build_profile[RaptorDesktopChrome-chromium] PASSED
- 1:16.70 testing/raptor/test/test_raptor.py::test_build_profile[RaptorAndroid-fennec] PASSED
- 1:16.70 testing/raptor/test/test_raptor.py::test_build_profile[RaptorAndroid-geckoview] PASSED
- 1:16.70 testing/raptor/test/test_raptor.py::test_start_and_stop_server PASSED
- 1:16.70 testing/raptor/test/test_raptor.py::test_server_wait_states PASSED
- 1:16.70 testing/raptor/test/test_raptor.py::test_start_browser[firefox] PASSED
- 1:16.70 testing/raptor/test/test_raptor.py::test_start_browser[chrome] xfail
- 1:16.70 testing/raptor/test/test_raptor.py::test_start_browser[chromium] xfail
- 1:16.70
- 1:16.70 ===================== 8 passed, 2 xfailed in 11.34 seconds =====================
- 1:16.70 Return code from mach python-test: 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement