Skip to content
Snippets Groups Projects
Commit 9d760277 authored by Stefano Di Frischia's avatar Stefano Di Frischia
Browse files

Merge branch 'master' into L2SS-398-archiver-multi-es

parents 769689c2 88c9f7db
No related branches found
No related tags found
1 merge request!161Resolve L2SS-398 "Archiver multi es"
%% Cell type:markdown id:6bdc7054 tags:
# Test LRx.y: Test Name
This notebook documents test output.
Instructions:
1. *PRESS File -> Make a Copy*,
1. Rename the notebook to the name of the test,
1. Update the title at the top of this section,
1. Fill in the sections with empty blocks with code and text,
1. Execute the provided initialisation code,
1. Run the tests,
1. *Rerun everything top to bottom to make sure the notebook is correct*,
1. Fill in the results & verdict.
1. Export the Jupyter Notebook to PDF and upload the file to the Polarion test results page.
1. ...and you're done!
%% Cell type:markdown id:63785004 tags:
## Author
Descibe who ran this test, and who helped (if applicable):
%% Cell type:markdown id:3c720d4b tags:
(your name)
%% Cell type:markdown id:ff837bcb tags:
## Timestamp
This test was executed at:
%% Cell type:code id:00418ee4 tags:
``` python
# Run this code
import datetime
print(f"Test was executed at {datetime.datetime.isoformat(datetime.datetime.now(), ' ')}")
```
%% Cell type:markdown id:0b4a59a5 tags:
## Purpose
Describe the purpose and context of this notebook, possibly including any links to external references, e.g. the Polarion reference number:
%% Cell type:markdown id:09d4d0a1 tags:
(purpose)
%% Cell type:markdown id:4c6489f3 tags:
## Methodology
Provide a summary of how we are going to prove compliance:
%% Cell type:markdown id:ceae21d4 tags:
(methodology)
%% Cell type:markdown id:9033f262 tags:
## Initialisation
The following sections contain boilerplate code to get the station to a well-defined state. If this is not applicable or broken, just note that here:
%% Cell type:markdown id:00d4e336 tags:
%% Cell type:markdown id:7532d05e tags:
### Hot reboot
Makes sure the software and hardware are all in a known state.
%% Cell type:code id:c7a3effa tags:
``` python
# Restart boot device
boot.off()
boot.initialise()
boot.on()
```
%% Cell type:code id:b4dd21b1 tags:
``` python
# Reboot the station
boot.boot()
```
%% Cell type:code id:78a4db84 tags:
``` python
# Wait for reboot to complete
import time
while boot.booting_R:
time.sleep(2)
print(f"Initialisation at {boot.progress_R}%: {boot.status_R}")
assert boot.progress_R == 100, f"Failed to fully initialise station: {boot.status_R}"
if boot.uninitialised_devices_R:
print(f"Warning! Did not initialise {boot.uninitialised_devices_R}. This might be inconsequential for this test.")
```
%% Cell type:markdown id:9bc072af tags:
### Active versions
List the versions currently running on the station.
%% Cell type:code id:35b815d4 tags:
``` python
def summarise(l: list) -> list:
return [f"{idx}: {version}" for idx,version in enumerate(l) if version] or ["no versions reported"]
versions = {
"SC": {dev.name():dev.version_R for dev in devices},
"SDP": {
"FPGA firmware": summarise(sdp.FPGA_firmware_version_R),
"FPGA hardware": summarise(sdp.FPGA_hardware_version_R),
"SDPTR": sdp.TR_software_version_R,
},
"RECV": {
"PCB": summarise(recv.RCU_PCB_version_R),
},
"APSCT": {
"PCB": apsct.APSCT_PCB_version_R,
},
"APSPU": {
"PCB": apspu.APSPU_PCB_version_R,
},
"UNB2": {
"PCB": summarise(unb2.UNB2_PCB_version_R),
}
}
from pprint import pprint
pprint(versions, width=120)
```
%% Cell type:markdown id:e51a06b7 tags:
## Test setup
Setup the hardware for the test:
%% Cell type:code id:e72dc2df tags:
``` python
# Your code to configure the station for this test
```
%% Cell type:markdown id:772dff7c tags:
## Run test
%% Cell type:code id:26570aea tags:
``` python
# Your code that triggers the actual test (if this is an explicit step)
```
%% Cell type:markdown id:6c604116 tags:
## Test results
%% Cell type:code id:d290d8dd tags:
``` python
# plot sst in after
```
%% Cell type:markdown id:d3cdb620 tags:
## Discuss results
How should the results be interpreted? Are there remaining worries and todo's based on this result?
%% Cell type:markdown id:6e082c7c tags:
(Explain results, and caveats)
%% Cell type:markdown id:a95fbf48 tags:
## Verdict
The test passed/did not pass:
%% Cell type:markdown id:9a2a7a97 tags:
(Explain whether the result is good enough, or what needs to be done to improve)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment