Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

normalize test file extension for test filenames #20

Merged
merged 1 commit into from
Apr 17, 2016
Merged

normalize test file extension for test filenames #20

merged 1 commit into from
Apr 17, 2016

Conversation

tfiala
Copy link
Contributor

@tfiala tfiala commented Apr 17, 2016

Something changed so that a test's filename can
report as the .pyc rather than the .py file in some flows. This
causes confusion, particularly in cases where a test runner
queue has to synthesize a test event, which uses the .py extension that everything was previously using. Then the rerun result event has a different
key than the timeout test run, and the timeout test run does
not get overwritten.

This change introduces a normalization step that converts all
test filenames ending in .pyc to end in .py.

Fixes:
https://bugs.swift.org/browse/SR-1220

It looks like something changed so that a test's filename can
report as the .pyc rather than the .py file in some flows.  This
causes confusion, particularly in cases where a test runner
queue has to synthesize a test event, uses the .py extension that
we always used.  Then the rerun result event has a different
key than the timeout test run, and the timeout test run does
not get overwritten.

This change introduces a normalization step that convers all
test filenames ending in .pyc to end in .py.

Fixes:
https://bugs.swift.org/browse/SR-1220
@tfiala
Copy link
Contributor Author

tfiala commented Apr 17, 2016

@swift-ci Please test Linux platform

@tfiala
Copy link
Contributor Author

tfiala commented Apr 17, 2016

Merging this in - this is a fix for the test running infrastructure. I hit the same failing tests locally, but these are now due to the Swift #line/#sourceLocation change. I don't blame anyone for not catching that given all the noise that the LLDB test suite was generating.

@tfiala tfiala merged commit 25c5f20 into apple:master Apr 17, 2016
rintaro pushed a commit to rintaro/swift-lldb that referenced this pull request Jul 29, 2016
posix sem_timedwait requires epoch-based timeout
rintaro pushed a commit to rintaro/swift-lldb that referenced this pull request Jul 29, 2016
posix sem_timedwait requires epoch-based timeout

Signed-off-by: Daniel A. Steffen <dsteffen@apple.com>
@tfiala tfiala deleted the fix-SR-1220-p2 branch December 2, 2016 16:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant