SHARE
TWEET

Untitled

a guest Sep 16th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Ultimately, I ran the Raptor unitests (pytest) in Python 2.7, via:
  2.  
  3. [sdonner@STEPHENs-MacBook-Pro ~/moz_src/mozilla-unified] $  ./mach python-test testing/raptor/test/
  4.  
  5. (plus setup & install magic, first)
  6.  
  7.  
  8. 1073  cd raptor/
  9.  1074  tox
  10.  1075  ls
  11.  1076  pytest
  12.  1077  pip install pytest
  13.  1078  pytest
  14.  1079  ls
  15.  1080  clear
  16.  1081  ls
  17.  1082  clear
  18.  1083  ./mach python-test --python=3.7
  19.  1084  cd ..
  20.  1085  cd ..
  21.  1086  ./mach
  22.  1087  ./mach python-test --python=3.5 testing/raptor/test
  23.  1088  ./mach python-test --python=3.7 testing/raptor/test
  24.  1089  ./mach python-test --python=3.7 testing/raptor/test/
  25.  1090  py.test
  26.  1091  python
  27.  1092  ./mach python-test --python=2.7 testing/raptor/test/
  28.  1093  ./mach python-test --python=2.7 testing/raptor/test/history
  29.  1094  history
  30. [sdonner@STEPHENs-MacBook-Pro ~/moz_src/mozilla-unified] $  which python
  31. /usr/local/bin/python
  32. [sdonner@STEPHENs-MacBook-Pro ~/moz_src/mozilla-unified] $  python -V
  33. Python 2.7.16
  34. [sdonner@STEPHENs-MacBook-Pro ~/moz_src/mozilla-unified] $  ./mach python-test testing/raptor/test/
  35. Warning: Your Pipfile requires python_version 3.7, but you are using 2.7.16 (/Users/s/m/m/o/_/m/bin/python).
  36.   $ pipenv check will surely fail.
  37. running build_ext
  38. copying build/lib.macosx-10.14-x86_64-2.7/psutil/_psutil_osx.so -> psutil
  39. copying build/lib.macosx-10.14-x86_64-2.7/psutil/_psutil_posix.so -> psutil
  40.  
  41. Error processing command. Ignoring because optional. (optional:packages.txt:comm/build/virtualenv_packages.txt)
  42.  0:03.75 /Users/sdonner/moz_src/mozilla-unified/testing/raptor/test/test_utils.py
  43.  0:03.75 ============================= test session starts ==============================
  44.  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
  45.  0:03.75 rootdir: /Users/sdonner/moz_src/mozilla-unified, inifile: /Users/sdonner/moz_src/mozilla-unified/config/mozunit/mozunit/pytest.ini
  46.  0:03.75 collecting ... collected 7 items
  47.  0:03.76
  48.  0:03.76 testing/raptor/test/test_utils.py::test_transform_platform[win] PASSED
  49.  0:03.76 testing/raptor/test/test_utils.py::test_transform_platform[mac] PASSED
  50.  0:03.76 testing/raptor/test/test_utils.py::test_transform_platform[linux64] PASSED
  51.  0:03.76 testing/raptor/test/test_utils.py::test_transform_platform_no_change PASSED
  52.  0:03.76 testing/raptor/test/test_utils.py::test_transform_platform_processor[x86_64] PASSED
  53.  0:03.76 testing/raptor/test/test_utils.py::test_transform_platform_processor[other] PASSED
  54.  0:03.76 testing/raptor/test/test_utils.py::test_write_yml_file PASSED
  55.  0:03.76
  56.  0:03.76 =========================== 7 passed in 0.02 seconds ===========================
  57.  0:03.78 /Users/sdonner/moz_src/mozilla-unified/testing/raptor/test/test_cpu.py
  58.  0:03.78 ============================= test session starts ==============================
  59.  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
  60.  0:03.78 rootdir: /Users/sdonner/moz_src/mozilla-unified, inifile: /Users/sdonner/moz_src/mozilla-unified/config/mozunit/mozunit/pytest.ini
  61.  0:03.78 collecting ... collected 4 items
  62.  0:03.78
  63.  0:03.78 testing/raptor/test/test_cpu.py::test_no_device PASSED
  64.  0:03.78 testing/raptor/test/test_cpu.py::test_usage_with_invalid_data_returns_zero PASSED
  65.  0:03.78 testing/raptor/test/test_cpu.py::test_usage_with_output PASSED
  66.  0:03.78 testing/raptor/test/test_cpu.py::test_usage_with_fallback PASSED
  67.  0:03.78
  68.  0:03.78 =========================== 4 passed in 0.05 seconds ===========================
  69.  0:03.79 /Users/sdonner/moz_src/mozilla-unified/testing/raptor/test/test_cmdline.py
  70.  0:03.79 ============================= test session starts ==============================
  71.  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
  72.  0:03.79 rootdir: /Users/sdonner/moz_src/mozilla-unified, inifile: /Users/sdonner/moz_src/mozilla-unified/config/mozunit/mozunit/pytest.ini
  73.  0:03.79 collecting ... collected 1 item
  74.  0:03.79
  75.  0:03.79 testing/raptor/test/test_cmdline.py::test_verify_options PASSED
  76.  0:03.79
  77.  0:03.79 =========================== 1 passed in 0.01 seconds ===========================
  78.  0:03.79 /Users/sdonner/moz_src/mozilla-unified/testing/raptor/test/test_print_tests.py
  79.  0:03.79 ============================= test session starts ==============================
  80.  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
  81.  0:03.79 rootdir: /Users/sdonner/moz_src/mozilla-unified, inifile: /Users/sdonner/moz_src/mozilla-unified/config/mozunit/mozunit/pytest.ini
  82.  0:03.79 collecting ... collected 1 item
  83.  0:03.79
  84.  0:03.79 testing/raptor/test/test_print_tests.py::test_pageload_subtests PASSED
  85.  0:03.79
  86.  0:03.79 =========================== 1 passed in 0.01 seconds ===========================
  87.  0:04.21 /Users/sdonner/moz_src/mozilla-unified/testing/raptor/test/test_manifest.py
  88.  0:04.21 ============================= test session starts ==============================
  89.  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
  90.  0:04.21 rootdir: /Users/sdonner/moz_src/mozilla-unified, inifile: /Users/sdonner/moz_src/mozilla-unified/config/mozunit/mozunit/pytest.ini
  91.  0:04.21 collecting ... collected 33 items
  92.  0:04.21
  93.  0:04.21 testing/raptor/test/test_manifest.py::test_get_browser_test_list[firefox] PASSED
  94.  0:04.21 testing/raptor/test/test_manifest.py::test_get_browser_test_list[chrome] PASSED
  95.  0:04.21 testing/raptor/test/test_manifest.py::test_get_browser_test_list[chromium] PASSED
  96.  0:04.21 testing/raptor/test/test_manifest.py::test_get_browser_test_list[geckoview] PASSED
  97.  0:04.21 testing/raptor/test/test_manifest.py::test_get_browser_test_list[refbrow] PASSED
  98.  0:04.21 testing/raptor/test/test_manifest.py::test_get_browser_test_list[fenix] PASSED
  99.  0:04.21 testing/raptor/test/test_manifest.py::test_validate_test_ini_valid[test_details0] PASSED
  100.  0:04.21 testing/raptor/test/test_manifest.py::test_validate_test_ini_valid[test_details1] PASSED
  101.  0:04.21 testing/raptor/test/test_manifest.py::test_validate_test_ini_valid[test_details2] PASSED
  102.  0:04.21 testing/raptor/test/test_manifest.py::test_validate_test_ini_valid[test_details3] PASSED
  103.  0:04.21 testing/raptor/test/test_manifest.py::test_validate_test_ini_valid[test_details4] PASSED
  104.  0:04.21 testing/raptor/test/test_manifest.py::test_validate_test_ini_invalid[test_details0] PASSED
  105.  0:04.21 testing/raptor/test/test_manifest.py::test_validate_test_ini_invalid[test_details1] PASSED
  106.  0:04.21 testing/raptor/test/test_manifest.py::test_validate_test_ini_invalid[test_details2] PASSED
  107.  0:04.21 testing/raptor/test/test_manifest.py::test_validate_test_ini_invalid[test_details3] PASSED
  108.  0:04.21 testing/raptor/test/test_manifest.py::test_get_raptor_test_list_firefox PASSED
  109.  0:04.21 testing/raptor/test/test_manifest.py::test_get_raptor_test_list_chrome PASSED
  110.  0:04.21 testing/raptor/test/test_manifest.py::test_get_raptor_test_list_geckoview PASSED
  111.  0:04.21 testing/raptor/test/test_manifest.py::test_get_raptor_test_list_gecko_profiling_enabled PASSED
  112.  0:04.21 testing/raptor/test/test_manifest.py::test_get_raptor_test_list_gecko_profiling_enabled_args_override PASSED
  113.  0:04.21 testing/raptor/test/test_manifest.py::test_get_raptor_test_list_gecko_profiling_disabled PASSED
  114.  0:04.21 testing/raptor/test/test_manifest.py::test_get_raptor_test_list_gecko_profiling_disabled_args_override PASSED
  115.  0:04.21 testing/raptor/test/test_manifest.py::test_get_raptor_test_list_debug_mode PASSED
  116.  0:04.21 testing/raptor/test/test_manifest.py::test_get_raptor_test_list_override_page_cycles PASSED
  117.  0:04.21 testing/raptor/test/test_manifest.py::test_get_raptor_test_list_override_page_timeout PASSED
  118.  0:04.21 testing/raptor/test/test_manifest.py::test_get_raptor_test_list_add_test_url_params PASSED
  119.  0:04.21 testing/raptor/test/test_manifest.py::test_get_raptor_test_list_refbrow PASSED
  120.  0:04.21 testing/raptor/test/test_manifest.py::test_get_raptor_test_list_fenix PASSED
  121.  0:04.21 testing/raptor/test/test_manifest.py::test_add_test_url_params_with_single_extra_param PASSED
  122.  0:04.21 testing/raptor/test/test_manifest.py::test_add_test_url_params_with_multiple_extra_param PASSED
  123.  0:04.21 testing/raptor/test/test_manifest.py::test_add_test_url_params_without_params_in_url PASSED
  124.  0:04.21 testing/raptor/test/test_manifest.py::test_add_test_url_params_overwrites_single_param PASSED
  125.  0:04.21 testing/raptor/test/test_manifest.py::test_add_test_url_params_overwrites_multiple_param PASSED
  126.  0:04.21
  127.  0:04.21 ========================== 33 passed in 0.48 seconds ===========================
  128.  0:04.79 /Users/sdonner/moz_src/mozilla-unified/testing/raptor/test/test_control_server.py
  129.  0:04.79 ============================= test session starts ==============================
  130.  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
  131.  0:04.79 rootdir: /Users/sdonner/moz_src/mozilla-unified, inifile: /Users/sdonner/moz_src/mozilla-unified/config/mozunit/mozunit/pytest.ini
  132.  0:04.79 collecting ... collected 3 items
  133.  0:04.79
  134.  0:04.79 testing/raptor/test/test_control_server.py::test_start_and_stop PASSED
  135.  0:04.79 testing/raptor/test/test_control_server.py::test_server_get_timeout PASSED
  136.  0:04.79 testing/raptor/test/test_control_server.py::test_server_android_app_backgrounding PASSED
  137.  0:04.79
  138.  0:04.79 =========================== 3 passed in 1.06 seconds ===========================
  139.  0:05.90 /Users/sdonner/moz_src/mozilla-unified/testing/raptor/test/test_power.py
  140.  0:05.90 ============================= test session starts ==============================
  141.  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
  142.  0:05.90 rootdir: /Users/sdonner/moz_src/mozilla-unified, inifile: /Users/sdonner/moz_src/mozilla-unified/config/mozunit/mozunit/pytest.ini
  143.  0:05.90 collecting ... collected 3 items
  144.  0:05.90
  145.  0:05.90 testing/raptor/test/test_power.py::test_android7_power PASSED
  146.  0:05.90 testing/raptor/test/test_power.py::test_android8_power PASSED
  147.  0:05.90 testing/raptor/test/test_power.py::test_androidos_baseline_power PASSED
  148.  0:05.90
  149.  0:05.91 =========================== 3 passed in 0.05 seconds ===========================
  150.  0:05.92 /Users/sdonner/moz_src/mozilla-unified/testing/raptor/test/test_playback.py
  151.  0:05.92 ============================= test session starts ==============================
  152.  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
  153.  0:05.92 rootdir: /Users/sdonner/moz_src/mozilla-unified, inifile: /Users/sdonner/moz_src/mozilla-unified/config/mozunit/mozunit/pytest.ini
  154.  0:05.92 collecting ... collected 3 items
  155.  0:05.93
  156.  0:05.93 testing/raptor/test/test_playback.py::test_get_playback PASSED
  157.  0:05.93 testing/raptor/test/test_playback.py::test_get_unsupported_playback PASSED
  158.  0:05.93 testing/raptor/test/test_playback.py::test_get_playback_missing_tool_name PASSED
  159.  0:05.93
  160.  0:05.93 =========================== 3 passed in 2.21 seconds ===========================
  161. 1:16.70 /Users/sdonner/moz_src/mozilla-unified/testing/raptor/test/test_raptor.py
  162.  1:16.70 ============================= test session starts ==============================
  163.  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
  164.  1:16.70 rootdir: /Users/sdonner/moz_src/mozilla-unified, inifile: /Users/sdonner/moz_src/mozilla-unified/config/mozunit/mozunit/pytest.ini
  165.  1:16.70 collecting ... collected 10 items
  166.  1:16.70
  167.  1:16.70 testing/raptor/test/test_raptor.py::test_build_profile[RaptorDesktopFirefox-firefox] PASSED
  168.  1:16.70 testing/raptor/test/test_raptor.py::test_build_profile[RaptorDesktopChrome-chrome] PASSED
  169.  1:16.70 testing/raptor/test/test_raptor.py::test_build_profile[RaptorDesktopChrome-chromium] PASSED
  170.  1:16.70 testing/raptor/test/test_raptor.py::test_build_profile[RaptorAndroid-fennec] PASSED
  171.  1:16.70 testing/raptor/test/test_raptor.py::test_build_profile[RaptorAndroid-geckoview] PASSED
  172.  1:16.70 testing/raptor/test/test_raptor.py::test_start_and_stop_server PASSED
  173.  1:16.70 testing/raptor/test/test_raptor.py::test_server_wait_states PASSED
  174.  1:16.70 testing/raptor/test/test_raptor.py::test_start_browser[firefox] PASSED
  175.  1:16.70 testing/raptor/test/test_raptor.py::test_start_browser[chrome] xfail
  176.  1:16.70 testing/raptor/test/test_raptor.py::test_start_browser[chromium] xfail
  177.  1:16.70
  178.  1:16.70 ===================== 8 passed, 2 xfailed in 11.34 seconds =====================
  179.  1:16.70 Return code from mach python-test: 0
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top