Undefined name 'test' in run_tests.py

This issue was hidden by the syntax error in #4741

$ __time flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics__
```
./hack/prow/run_tests.py:28:32: F821 undefined name 'test'
  classname = os.path.basename(test).split('.')[0]
                               ^
1     F821 undefined name 'test'
1
```
pull/4762/head
cclauss 2019-07-15 19:15:40 +02:00 committed by GitHub
parent 5614a87a3f
commit a23169c25e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ import os, sys, json, re, argparse, calendar, time, subprocess, shlex
def get_classname(test_script):
""" parse out the test classname from the full path of the test script"""
classname = os.path.basename(test).split('.')[0]
classname = os.path.basename(test_script).split('.')[0]
return classname
def write_results(outdir, started, finished, test_results):