mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
fix regression test
This commit is contained in:
@@ -91,9 +91,15 @@ function run_test() {
|
|||||||
grep -i fail "${TEST_DIR}/${i}.txt" && retval=1
|
grep -i fail "${TEST_DIR}/${i}.txt" && retval=1
|
||||||
chmod 664 "${TEST_DIR}/${i}.txt"
|
chmod 664 "${TEST_DIR}/${i}.txt"
|
||||||
if (( $retval == 0 )); then
|
if (( $retval == 0 )); then
|
||||||
results+=("<tr><td>${CURR_TEST_NAME}</td><td class='scriptdetails'>${i}</td><td class='success'>Success</td><td><a href=\"/home/lanforge/report-data/${TEST_DIR}/${i}.txt>STDOUT</button></td><td><a href=\"/home/lanforge/report-data/${TEST_DIR}/${i}_stderr.txt>STDERR</button></td></tr>")
|
results+=("<tr><td>${CURR_TEST_NAME}</td><td class='scriptdetails'>${i}</td>
|
||||||
|
<td class='success'>Success</td>
|
||||||
|
<td><a href=\"${TEST_DIR}/${i}.txt>STDOUT</button></td>
|
||||||
|
<td><a href=\"${TEST_DIR}/${i}_stderr.txt>STDERR</button></td></tr>")
|
||||||
else
|
else
|
||||||
results+=("<tr><td>${CURR_TEST_NAME}</td><td class='scriptdetails'>${i}</td><td class='failure'>Failure</td><td><button onclick=\"toggle_visibility('${i}');\">Show/Hide</button></td></tr>")
|
results+=("<tr><td>${CURR_TEST_NAME}</td><td class='scriptdetails'>${i}</td>
|
||||||
|
<td class='failure'>Failure</td>
|
||||||
|
<td><a href=\"${TEST_DIR}/${i}.txt>STDOUT</button></td>
|
||||||
|
<td><a href=\"${TEST_DIR}/${i}_stderr.txt>STDERR</button></td></tr>")
|
||||||
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
import subprocess
|
|
||||||
def main():
|
|
||||||
command = "pip install pandas seaborn plotly numpy dash --upgrade"
|
|
||||||
res = subprocess.call(command, shell = True)
|
|
||||||
|
|
||||||
print("Returned Value: ", res)
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
pip install pandas seaborn plotly numpy dash --upgrade
|
|
||||||
Reference in New Issue
Block a user