Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Oct 22, 2025

In both cases the tempfile usage was not necessary.

test_emconfig: In this case we can just create a new config file in the CWD. Because the test corrupts the main config file there is no risk that the test is accidentally finding the config file via CWD alone so there is no need to change directory into an external temp dir.

test_firstrun: We an just create the fake bin files in a subdirectory of the current directory where the test runs. No need for an external temp dir here.

This change also makes 3 of the imports in this file no longer needed!

In both cases the tempfile usage was not necessary.

test_emconfig: In this case we can just create a new config file in
the CWD.  Because the test corrupts the main config file there is no
risk that the test is accidentally finding the config file via CWD alone
so there is no need to change directory into an external temp dir.

test_firstrun: We an just create the fake `bin` files in a subdirectory
of the current directory where the test runs.  No need for an external
temp dir here.
@sbc100 sbc100 merged commit 0ba015a into emscripten-core:main Oct 22, 2025
30 of 34 checks passed
@sbc100 sbc100 deleted the remove_tempfile_usage branch October 22, 2025 00:49
sbc100 added a commit that referenced this pull request Oct 22, 2025
sbc100 added a commit that referenced this pull request Oct 22, 2025
Reverts #25617

The tests in question did not pass. Reverting while I figure out what
happened here.
sbc100 added a commit to sbc100/emscripten that referenced this pull request Oct 22, 2025
This was originally landed in emscripten-core#25617, but reverted because the tests
were failing.

In both cases the tempfile usage was not necessary.

test_emconfig: In this case we can just create a new config file in the
CWD. Because the test corrupts the main config file there is no risk
that the test is accidentally finding the config file via CWD alone so
there is no need to change directory into an external temp dir.

test_firstrun: We an just create the fake `bin` files in a subdirectory
of the current directory where the test runs. No need for an external
temp dir here.

This change also makes 3 of the imports in this file no longer needed!
sbc100 added a commit to sbc100/emscripten that referenced this pull request Oct 22, 2025
This was originally landed in emscripten-core#25617, but reverted because the tests
were failing.

In both cases the tempfile usage was not necessary.

test_emconfig: In this case we can just create a new config file in the
CWD. Because the test corrupts the main config file there is no risk
that the test is accidentally finding the config file via CWD alone so
there is no need to change directory into an external temp dir.

test_firstrun: We an just create the fake `bin` files in a subdirectory
of the current directory where the test runs. No need for an external
temp dir here.

This change also makes 3 of the imports in this file no longer needed!
sbc100 added a commit to sbc100/emscripten that referenced this pull request Oct 22, 2025
This was originally landed in emscripten-core#25617, but reverted because the tests
were failing.

In both cases the tempfile usage was not necessary.

test_emconfig: In this case we can just create a new config file in the
CWD. Because the test corrupts the main config file there is no risk
that the test is accidentally finding the config file via CWD alone so
there is no need to change directory into an external temp dir.

test_firstrun: We an just create the fake `bin` files in a subdirectory
of the current directory where the test runs. No need for an external
temp dir here.

This change also makes 3 of the imports in this file no longer needed!
sbc100 added a commit to sbc100/emscripten that referenced this pull request Oct 22, 2025
This was originally landed in emscripten-core#25617, but reverted because the tests
were failing.

In both cases the tempfile usage was not necessary.

test_emconfig: In this case we can just create a new config file in the
CWD. Because the test corrupts the main config file there is no risk
that the test is accidentally finding the config file via CWD alone so
there is no need to change directory into an external temp dir.

test_firstrun: We an just create the fake `bin` files in a subdirectory
of the current directory where the test runs. No need for an external
temp dir here.

This change also makes 3 of the imports in this file no longer needed!
sbc100 added a commit to sbc100/emscripten that referenced this pull request Oct 22, 2025
This was originally landed in emscripten-core#25617, but reverted because the tests
were failing.

In both cases the tempfile usage was not necessary.

test_emconfig: In this case we can just create a new config file in the
CWD. Because the test corrupts the main config file there is no risk
that the test is accidentally finding the config file via CWD alone so
there is no need to change directory into an external temp dir.

test_firstrun: We an just create the fake `bin` files in a subdirectory
of the current directory where the test runs. No need for an external
temp dir here.

This change also makes 3 of the imports in this file no longer needed!
sbc100 added a commit to sbc100/emscripten that referenced this pull request Oct 22, 2025
This was originally landed in emscripten-core#25617, but reverted because the tests
were failing.

In both cases the tempfile usage was not necessary.

test_emconfig: In this case we can just create a new config file in the
CWD. Because the test corrupts the main config file there is no risk
that the test is accidentally finding the config file via CWD alone so
there is no need to change directory into an external temp dir.

test_firstrun: We an just create the fake `bin` files in a subdirectory
of the current directory where the test runs. No need for an external
temp dir here.

This change also makes 3 of the imports in this file no longer needed!
sbc100 added a commit to sbc100/emscripten that referenced this pull request Oct 22, 2025
This was originally landed in emscripten-core#25617, but reverted because the tests
were failing.

In both cases the tempfile usage was not necessary.

test_emconfig: In this case we can just create a new config file in the
CWD. Because the test corrupts the main config file there is no risk
that the test is accidentally finding the config file via CWD alone so
there is no need to change directory into an external temp dir.

test_firstrun: We an just create the fake `bin` files in a subdirectory
of the current directory where the test runs. No need for an external
temp dir here.

This change also makes 3 of the imports in this file no longer needed!
sbc100 added a commit that referenced this pull request Oct 22, 2025
This was originally landed in #25617, but reverted because the tests
were failing.

In both cases the tempfile usage was not necessary.

test_emconfig: In this case we can just create a new config file in the
CWD. Because the test corrupts the main config file there is no risk
that the test is accidentally finding the config file via CWD alone so
there is no need to change directory into an external temp dir.

test_firstrun: We an just create the fake `bin` files in a subdirectory
of the current directory where the test runs. No need for an external
temp dir here.

This change also makes 3 of the imports in this file no longer needed!
Sign up for free to 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.

2 participants