Skip to content

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.

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?

if os.path.isdir(file_or_dir_src):
shutil.copytree(file_or_dir_src, file_or_dir_dest)
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.

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.

3 participants