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

only rinex-qc and cli need SP3 dependency #161

Merged
merged 2 commits into from
Sep 8, 2023
Merged

only rinex-qc and cli need SP3 dependency #161

merged 2 commits into from
Sep 8, 2023

Conversation

gwbres
Copy link
Collaborator

@gwbres gwbres commented Sep 7, 2023

  • Only rinex-qc and rinex-cli need the SP3 library actually. It is no longer needed by the parser,
    since we split the QC into a separate library
  • Improve general test environment. From time to time, we're facing false negative (false test failures), because tests get executed in a multi threaded environment and we use basic and similar names like "test.crx" or "tmp.rnx" in separate methods.
    With this simple random name generator, we make sure each tasklet creates a unique file.
    We also made sure, in a previous contribution, that all temporary generated files get removed at the end of the test execution.

Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com>
@gwbres gwbres added the enhancement New feature provided label Sep 7, 2023
Improve file production test environment by using temporary files
that always get removed at the end of a given test.
From time to time, we're facing some false negative test failures,
due to the test execution being multi threaded, and basic file names like "tmp.rnx"
or "test.crx" being used in separate test tasks.

Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com>
@gwbres gwbres self-assigned this Sep 8, 2023
@gwbres gwbres merged commit d064898 into main Sep 8, 2023
let copy_path = path.to_owned() + "-copy";
assert_eq!(rnx.to_file(&copy_path).is_ok(), true); // test writer
let copy = Rinex::from_file(&copy_path);
let tmp_path = format!("test-{}.rnx", random_name(5));
Copy link
Member

Choose a reason for hiding this comment

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

@gwbres gwbres deleted the minor-fix branch September 9, 2023 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature provided
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants