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

Modified run_tests, added config version #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davidkeymer
Copy link
Contributor

Description of work

As above

Ticket

#5048

Acceptance criteria

List the acceptance criteria for the PR. The aim is provide information to help the reviewer

Unit tests

Give an overview of unit tests you have added or modified, if applicable. The aim is provide information to help the reviewer

System tests

Mention any automated tests or manual tests that you have added or modified, if applicable. The aim is provide information to help the reviewer

Documentation

Highlight and provide a link to any additions or changes to the documentation, if applicable. The aim is provide information to help the reviewer


Code Review

  • Is the code of an acceptable quality?
  • Do the changes function as described and is it robust?
  • Have the changes been documented in the release notes?

Final Steps

  • Reviewer has moved the release notes entry for this ticket in the "Changes merged into master" section

Copy link
Contributor

@DominicOram DominicOram left a comment

Choose a reason for hiding this comment

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

I don't think this quite works as expected, see comments.

@@ -25,6 +25,9 @@
import xmlrunner
import argparse

# Import the configurations upgrade tool
sys.path.append( os.path.join("C:\\", "Instrument", "Apps", "EPICS", "misc", "upgrade", "master"))
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you use the EPICS_ROOT environment variable here?

@@ -69,6 +72,9 @@
else:
shutil.copy(file_or_dir_src, dest)
Copy link
Contributor

Choose a reason for hiding this comment

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

This ends up copying config_version.txt to machine_name/configurations/configurations it should actually live in machine_name/configurations otherwise the upgrade script won't find it.

@@ -69,6 +72,9 @@
else:
shutil.copy(file_or_dir_src, dest)

print("\n\n------ UPGRADING configurations ------")
perform_upgrade()
Copy link
Contributor

Choose a reason for hiding this comment

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

I get an error when this is run of No such file or directory: "src\\schemas\\new_banner.xsd"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants