Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qa: Make tmpdir option an absolute path, misc cleanup #11472

Merged
merged 2 commits into from Oct 18, 2017

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Oct 9, 2017

This should fix issues with the multiwallet test and its symlinks
when the tmpdir is a relative path.

Rather than fixing os.symlink to work with paths relative to a
directory descriptor, which does not work on Windows, normalize
the path instead.

@maflcko maflcko added the Tests label Oct 9, 2017
@laanwj
Copy link
Member

laanwj commented Oct 10, 2017

utACK fa949d1, storing paths as absolute is always a good precaution to prevent unexpected behavior.

@promag
Copy link
Member

promag commented Oct 10, 2017

utACK.

Should the same applies to cachedir?

@laanwj
Copy link
Member

laanwj commented Oct 12, 2017

Should the same applies to cachedir?

I think that makes sense (not sure it's in scope of this issue though).

@jnewbery
Copy link
Contributor

Tested ACK fa949d1bd6710358626eb70a47dfa101c0a60da2.

👍 for the same treatment to cachedir

MarcoFalke added 2 commits October 13, 2017 15:28
This should fix issues with the multiwallet test and symlinks
when the tmpdir is a relative path.

Rather than fixing os.symlink to work with paths relative to a
directory descriptor, which does not work on Windows, normalize
the path instead.
@maflcko maflcko changed the title qa: Make tmpdir option an absolute path qa: Make tmpdir option an absolute path, misc cleanup Oct 13, 2017
@promag
Copy link
Member

promag commented Oct 16, 2017

re-utACK fafa003.

@meshcollider
Copy link
Contributor

utACK fafa003

@laanwj laanwj merged commit fafa003 into bitcoin:master Oct 18, 2017
laanwj added a commit that referenced this pull request Oct 18, 2017
fafa003 qa: Remove never used return value of sync_with_ping (MarcoFalke)
fa9de37 qa: Make tmpdir option an absolute path (MarcoFalke)

Pull request description:

  This should fix issues with the multiwallet test and its symlinks
  when the tmpdir is a relative path.

  Rather than fixing os.symlink to work with paths relative to a
  directory descriptor, which does not work on Windows, normalize
  the path instead.

Tree-SHA512: 189690f3d065ea2f0f48e06775c86d513d0916c7c86312432e8e16df160e65539e288c2bd53d49a4180735fa940f6fcd52b506ccd7d9815651a9b1a69850dda6
@maflcko maflcko deleted the Mf1710-qaMultiwalletRelDir branch October 18, 2017 21:32
maflcko pushed a commit to maflcko/bitcoin-core that referenced this pull request Nov 1, 2017
This should fix issues with the multiwallet test and symlinks
when the tmpdir is a relative path.

Rather than fixing os.symlink to work with paths relative to a
directory descriptor, which does not work on Windows, normalize
the path instead.

Github-Pull: bitcoin#11472
Rebased-From: fa9de37
maflcko pushed a commit to maflcko/bitcoin-core that referenced this pull request Nov 1, 2017
@morcos morcos mentioned this pull request Nov 2, 2017
codablock pushed a commit to codablock/dash that referenced this pull request Sep 26, 2019
…eanup

fafa003 qa: Remove never used return value of sync_with_ping (MarcoFalke)
fa9de37 qa: Make tmpdir option an absolute path (MarcoFalke)

Pull request description:

  This should fix issues with the multiwallet test and its symlinks
  when the tmpdir is a relative path.

  Rather than fixing os.symlink to work with paths relative to a
  directory descriptor, which does not work on Windows, normalize
  the path instead.

Tree-SHA512: 189690f3d065ea2f0f48e06775c86d513d0916c7c86312432e8e16df160e65539e288c2bd53d49a4180735fa940f6fcd52b506ccd7d9815651a9b1a69850dda6
codablock pushed a commit to codablock/dash that referenced this pull request Sep 29, 2019
…eanup

fafa003 qa: Remove never used return value of sync_with_ping (MarcoFalke)
fa9de37 qa: Make tmpdir option an absolute path (MarcoFalke)

Pull request description:

  This should fix issues with the multiwallet test and its symlinks
  when the tmpdir is a relative path.

  Rather than fixing os.symlink to work with paths relative to a
  directory descriptor, which does not work on Windows, normalize
  the path instead.

Tree-SHA512: 189690f3d065ea2f0f48e06775c86d513d0916c7c86312432e8e16df160e65539e288c2bd53d49a4180735fa940f6fcd52b506ccd7d9815651a9b1a69850dda6
barrystyle pushed a commit to PACGlobalOfficial/PAC that referenced this pull request Jan 22, 2020
…eanup

fafa003 qa: Remove never used return value of sync_with_ping (MarcoFalke)
fa9de37 qa: Make tmpdir option an absolute path (MarcoFalke)

Pull request description:

  This should fix issues with the multiwallet test and its symlinks
  when the tmpdir is a relative path.

  Rather than fixing os.symlink to work with paths relative to a
  directory descriptor, which does not work on Windows, normalize
  the path instead.

Tree-SHA512: 189690f3d065ea2f0f48e06775c86d513d0916c7c86312432e8e16df160e65539e288c2bd53d49a4180735fa940f6fcd52b506ccd7d9815651a9b1a69850dda6
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants