Skip to content

Commit

Permalink
Remove more unused pa11ycrawler code (openedx#20690)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbowman authored May 24, 2019
1 parent 92c24c7 commit c1c4cf5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 deletions.
6 changes: 0 additions & 6 deletions pavelib/paver_tests/test_paver_bok_choy_cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,8 @@
import os
import unittest
from test.test_support import EnvironmentVarGuard
from textwrap import dedent

import ddt
from mock import Mock, call, patch
from paver.easy import call_task, environment

from pavelib.utils.test.suites import BokChoyTestSuite
from pavelib.utils.test.suites.bokchoy_suite import DEMO_COURSE_IMPORT_DIR, DEMO_COURSE_TAR_GZ

REPO_DIR = os.getcwd()

Expand Down
5 changes: 0 additions & 5 deletions pavelib/utils/test/suites/bokchoy_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
from __future__ import print_function
import os
from time import sleep
from textwrap import dedent

from common.test.acceptance.fixtures.course import CourseFixture, FixtureError

from path import Path as path
from paver.easy import sh, cmdopts, task, needs, might_call, call_task, dry
from pavelib.utils.test.suites.suite import TestSuite
from pavelib.utils.envs import Env
Expand All @@ -35,9 +33,6 @@
DEFAULT_NUM_PROCESSES = 1
DEFAULT_VERBOSITY = 2

DEMO_COURSE_TAR_GZ = "https://github.com/edx/demo-test-course/archive/master.tar.gz"
DEMO_COURSE_IMPORT_DIR = path('test_root/courses/')


@task
@cmdopts([BOKCHOY_DEFAULT_STORE, BOKCHOY_DEFAULT_STORE_DEPR])
Expand Down
2 changes: 1 addition & 1 deletion scripts/thresholds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
set -e

export LOWER_PYLINT_THRESHOLD=1000
export UPPER_PYLINT_THRESHOLD=2200
export UPPER_PYLINT_THRESHOLD=2100
export ESLINT_THRESHOLD=5530
export STYLELINT_THRESHOLD=880
6 changes: 3 additions & 3 deletions scripts/xdist/get_worker_test_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ def main(log_file, test_suite):
worker_test_dict = {}
with io.open(log_file, 'r') as console_file:
for line in console_file:
regex_search = re.search(r'\[{}] \[gw(\d+)] (PASSED|FAILED|SKIPPED|ERROR)'.format(test_suite), line)
regex_search = re.search(r'\[gw(\d+)] (PASSED|FAILED|SKIPPED|ERROR)'.format(test_suite), line)
if regex_search:
worker_num_string = regex_search.group(1)
if worker_num_string not in worker_test_dict:
worker_test_dict[worker_num_string] = []
test = line.split()[3]
test = line.split()[2]
if test_suite == "commonlib-unit":
if "pavelib" not in test:
if "pavelib" not in test and not test.startswith('scripts'):
test = u"common/lib/{}".format(test)
worker_test_dict[worker_num_string].append(test)

Expand Down

0 comments on commit c1c4cf5

Please sign in to comment.