summaryrefslogtreecommitdiffstats
path: root/agl-test
diff options
context:
space:
mode:
authorYan <yanxk.fnst@fujitsu.com>2023-03-31 09:22:11 +0800
committerYan <yanxk.fnst@fujitsu.com>2023-03-31 09:22:11 +0800
commite0371eee986998087c4e75acb48039dcec2c6283 (patch)
tree0e6461388002ba6f1bb6c0b59640d31bce2d4c0e /agl-test
parent0124d938848301f8768d715b20dc1c4af486dd33 (diff)
agl-test-framework: add LOG_MODE options
add new options: "default", "slim", "clear". users can use export LOG_MODE="" to control how the framework would delete all its temp files or folders. "default": no influence, nothing would be removed. "slim": test self-owned temp files and folders removed. "clear": clean up each and every temp files and folders. Bug-AGL: SPEC-4733 Signed-off-by: Yan <yanxk.fnst@fujitsu.com> Change-Id: Ia3d8c2a971bbf97749448f732e848d9d15193459
Diffstat (limited to 'agl-test')
-rwxr-xr-xagl-test23
1 files changed, 23 insertions, 0 deletions
diff --git a/agl-test b/agl-test
index 1d2909a..866121f 100755
--- a/agl-test
+++ b/agl-test
@@ -26,6 +26,27 @@ then
fi
echo "STRESS_LEVEL: $STRESS_LEVEL"
+# default logging mode is default
+if [[ ! $LOG_MODE ]]
+then
+ export LOG_MODE="default"
+fi
+
+case $LOG_MODE in
+ "default")
+ ;;
+ "slim")
+ ;;
+ "clear")
+ ;;
+ *)
+ echo "Unrecognized LOG_MODE, setting to default..."
+ export LOG_MODE="default"
+ ;;
+esac
+
+echo "LOG_MODE: $LOG_MODE"
+
# default test without dangerous marker
moption="-m "
if [[ $* =~ ${moption} ]]
@@ -36,3 +57,5 @@ else
fi
python3 -c "import plugins.agl_test_report as report; report.generate_total_summary_files('${current_time}')"
+
+python3 -c "import plugins.agl_test_utils as utils; utils.rm_all_tmp()"