Skip to content

compiletest: print the correct basename of the src dir - #44630

Merged
bors merged 2 commits into
rust-lang:masterfrom
RalfJung:compiletest
Sep 17, 2017
Merged

compiletest: print the correct basename of the src dir#44630
bors merged 2 commits into
rust-lang:masterfrom
RalfJung:compiletest

Conversation

@RalfJung

@RalfJungRalfJung commented Sep 16, 2017

Copy link
Copy Markdown
Member

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@kennytm

Copy link
Copy Markdown
Member

Does this close #40712?

Comment threadsrc/tools/compiletest/src/main.rs Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

config.src_base is already a PathBuf so wouldn't it suffice to just write config.src_base?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That will print the absolute path to the test. I wanted to make it relative to the current working directory, and this is the crude approximation I ended up with.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah OK

@RalfJung

Copy link
Copy Markdown
MemberAuthor

@kennytm Yes I think it does.

@RalfJungRalfJung changed the title compiletest: print the correct basenam of the src dircompiletest: print the correct basename of the src dirSep 16, 2017
@Mark-Simulacrum

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Sep 16, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit 83589f2 has been approved by Mark-Simulacrum

TimNN added a commit to TimNN/rust that referenced this pull request Sep 17, 2017
@TimNNTimNN mentioned this pull request Sep 17, 2017
TimNN added a commit to TimNN/rust that referenced this pull request Sep 17, 2017
@TimNNTimNN mentioned this pull request Sep 17, 2017
TimNN added a commit to TimNN/rust that referenced this pull request Sep 17, 2017
@TimNNTimNN mentioned this pull request Sep 17, 2017
bors added a commit that referenced this pull request Sep 17, 2017
@bors
bors merged commit 83589f2 into rust-lang:masterSep 17, 2017
@RalfJung
RalfJung deleted the compiletest branch July 10, 2018 09:05
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@RalfJung@rust-highfive@kennytm@Mark-Simulacrum@bors@laumann@alexcrichton