[LNT] r238296 - For the regression tests, make temporary LNT db instances on the fly.

Kristof Beyls kristof.beyls at arm.com
Wed May 27 00:23:44 PDT 2015


Author: kbeyls
Date: Wed May 27 02:23:44 2015
New Revision: 238296

URL: http://llvm.org/viewvc/llvm-project?rev=238296&view=rev
Log:
For the regression tests, make temporary LNT db instances on the fly.

This is a step towards enabling having per-test data in the test LNT db,
and making it easier to write new tests that rely on database content.


Modified:
    lnt/trunk/tests/lnttool/email_tools.py
    lnt/trunk/tests/server/ui/V4Pages.py

Modified: lnt/trunk/tests/lnttool/email_tools.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/tests/lnttool/email_tools.py?rev=238296&r1=238295&r2=238296&view=diff
==============================================================================
--- lnt/trunk/tests/lnttool/email_tools.py (original)
+++ lnt/trunk/tests/lnttool/email_tools.py Wed May 27 02:23:44 2015
@@ -1,8 +1,14 @@
 # Testing for the  LNT email commands module.
 #
+# create temporary instance
+# Cleanup temporary directory in case one remained from a previous run - also see PR9904.
+# RUN: rm -rf %t.instance
+# RUN: python %{shared_inputs}/create_temp_instance.py %{shared_inputs}/SmallInstance %t.instance
+#
 # RUN: lnt send-run-comparison --dry-run --to some at address.com \
 # RUN: --from some.other at address.com  \
-# RUN: --host localhost %{shared_inputs}/SmallInstance/ 1 2
+# RUN: --host localhost %t.instance 1 2
 # RUN: lnt send-daily-report --dry-run --from some.other at address.com \
 # RUN: --host localhost --testsuite nts \
-# RUN: %{shared_inputs}/SmallInstance/ some at address.com
+# RUN: %t.instance some at address.com
+#

Modified: lnt/trunk/tests/server/ui/V4Pages.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/tests/server/ui/V4Pages.py?rev=238296&r1=238295&r2=238296&view=diff
==============================================================================
--- lnt/trunk/tests/server/ui/V4Pages.py (original)
+++ lnt/trunk/tests/server/ui/V4Pages.py Wed May 27 02:23:44 2015
@@ -1,7 +1,12 @@
 # Perform basic sanity checking of the V4 UI pages. Currently this really only
 # checks that we don't crash on any of them.
 #
-# RUN: python %s %{shared_inputs}/SmallInstance
+# create temporary instance
+# Cleanup temporary directory in case one remained from a previous run - also see PR9904.
+# RUN: rm -rf %t.instance
+# RUN: python %{shared_inputs}/create_temp_instance.py %{shared_inputs}/SmallInstance %t.instance
+#
+# RUN: python %s %t.instance
 
 import logging
 import sys





More information about the llvm-commits mailing list