Age | Commit message (Collapse) | Author | Files | Lines |
|
Change-Id: I438d266802b9d9b29e4dd3f7314f3ec1f5776fca
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Change-Id: I656c7302ed5fbf79b277890920b9d93b897eeb9d
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Change-Id: Id3ede4bad3079cb95404a5f733dcc67b62fb087d
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Run: avocado run tct/run/common_test.py \
--multiplex tsp/common_test.yaml.example
Change-Id: Ie90e774e410626ccfca33ab262f85e5bd71b59ec
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Change-Id: Ic5a135a2763762cacbd0d756e1dea077d545204d
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Change-Id: I2d0bb33c99a2672175fd06ccc19bd0720ebde1d2
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Connection time to DUT averages to 28s.
After first call each subsequent is near instant.
Change-Id: I4fe50406fec06a7468d0e904295a4f7669803b2d
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Manual configuration was required for this script to use proper value.
Now it gets it automatically.
Change-Id: Icd0881ba05bafe120387f159fbb29c5c604d8a27
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
If a url is present in tsmaster queue $i value will be changed
to last killed task's number or simply undefined value.
Rename $i to $next
Add update_next() which checks if write to a file was successful.
Append to unique_dispatch instead of overwrite.
Change-Id: Ib49c248a0f756a090c2408a7ae60be76dccd707a
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Supported target configurations:
* odroid, minnow32, minnow64 (unchanged)
* headless-artik5, artik5, headless-artik10, artik10 (new)
Change-Id: Idf46f15e633fab34ed8bd9de71934ac2fd3293b8
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
It breaks backward-compatibility with arguments and results.
TSP scripts are adjusted.
Supported target configurations (unchanged): odroid, minnow32, minnow64
Changes:
* now uses target name for project-$target.conf and diff-$target.report
* old arguments are replaced by one "-t TARGET"
Change-Id: I0d503717c09073d72cb742fcc024247ec807896a
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
ShellCheck: https://github.com/koalaman/shellcheck
Command below should not print anything.
shellcheck -e SC2164,SC1090,SC2148,SC2010,SC2155,SC2024,SC2086,SC2044 \
$(find tct -name "*.sh")
Change-Id: I30d7db0bdd1370d8010b8adbea76bf65f2e07373
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Move check_diff() to tsp/jobs/img_test_common.sh
Add newline at the end of 'modifed_paths' in tsp/scripts/crawler.py
so that whole lines instead of words can be read.
ShellCheck: https://github.com/koalaman/shellcheck
shellcheck -e SC1090,SC2155,SC2068,SC2145,SC2164 `find tsp -name "*.sh"`
output should report following problems only:
tsp/common.sh: SC2148, SC2034, SC2139
tsp/jobs/trigger_downloads.sh: SC2115
tsp/jobs/common_prep_flash_conf.sh: SC2029
tsp/jobs/publish.sh: SC2046, SC2029
Change-Id: I7791769a0d653c784715cdd1a8b1446fafcba1e9
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
mkfs.ext4 is required.
It does not check error paths.
Change-Id: I54477a575350d9c70d8413a9243a72d3fa27e25c
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Exactly one sdmux device should be connected during these tests.
Change-Id: I48c098cc02416e52067fe5b2bfe23da5e9c78463
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Change-Id: I80c9ae848873742a0521e6c4aa29c8f8d138bb69
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Change-Id: I7ea1e13702ea17488da6c2c0424db1283d7f4db2
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
To stop TITS run:
./tsp/stop.sh
Steps are:
* remove crontab
* save currently dispatched urls
* for tsmaster, tspoll, tspwb:
** remove queued jobs
** kill running jobs
** kill the server
* for tsrun_target queues:
** remove queued jobs
** wait for running jobs
** kill the server
To start TITS run:
crontab tsp/cronfile.example
Change-Id: I051a9ddcec0093c1fae3888ec9a9b438b73f5bb3
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Syntax error in any file used by sudo will break it.
Always check it as in example below:
visudo -c -f tsp/tsp-sudoer
Change-Id: Icb7978c31370924d1f1928a711de86283022aa4c
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
When using sshpass in a container special privileges were required.
It is no longer the case as TITS should run bare metal.
User should be member of 'plugdev' group.
Change-Id: I785c262dae9d78bc0b07759ba6e29df1fe744adc
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Change-Id: I3850233b5459d5d4bf075cdad37f94020ca7641c
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Only directories, modified at least 2 days ago, in WS_DOWNLOAD
are processed. All non-snapshot directories are verbosely removed.
Change-Id: Ibabb7d874e1e75453c8f348725b99346007e1908
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Change-Id: I137be0324c7b783c191e8e6abdc8a83139a80777
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
This script requires jinja2 templating library.
Change-Id: Icd30ab726bc98a7e6556363c4a3bf8eccbdfa7a7
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Previous database should be removed or updated as below:
. tsp/common.sh
sqlite3 "${DBPATH}" "ALTER TABLE test ADD COLUMN tbuildnr INTEGER;"
View must be dropped and redefined:
sqlite3 "${DBPATH}" "DROP VIEW currentstatus;"
sqlite3 "${DBPATH}" -batch < tsp/results-schema.sql
Change-Id: Ic04a2c050468064ed3c9b8ac0ab3db4af075cbc1
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Change-Id: Ic8f05d856b5001eb4ffe83f76c9f6a30ae79da11
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Additional argument, $TARGET, is required for tsp/jobs/publish.sh
Change-Id: Iab5728c40e4786425c26dd48e7a70d6221dc90ae
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
tsp/results-schema.sql contains basic table definitions
of device, result, test and "currentstatus" view.
Change-Id: I53c5a7e5d744aba07500ef5492c490368692cb44
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Tag is from set: OK, Identical, Snapshot, Unclear, Fail
Change-Id: Ieac636e4b4d00aa21ec86253beb4e7cc38694ec3
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
tct/run/smoke_tests.sh produces some numerical output. This patch makes
it easy to store and retreive values as in line below:
awk -v KEY="${KEY}" '$1 == KEY {print $2}' $DICT
where $KEY is variable name and $DICT is sysctl.result file.
Change-Id: I3eee61152a189ad443fa641f5160f516567506f1
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Change-Id: I4e1a7e5964985957e34ad151c031c982cd814219
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
If any of the md5sums_url is missing (http error code 404 was returned)
from md5sums_urls list then it will be skipped and not dispatched.
It saves http requests so that it won't timeout if the server is busy.
For url to be added to dispatched_urls it must:
* have every md5sums_url from md5sums_urls list available
(no 404 error returned)
* have any of the md5sums_urls modified since last timestamp
Change-Id: Ie790f1039e91003b0da85c19d7db11ac160007da
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Remove redundant mkdirs from tct/odroid_prepare_flash_conf.sh
Change-Id: I6da51ef4b7e82debf66eea88570b7e997bf7855a
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Add quiet param to wget in tsp/scripts/download_image.py
Add tsp/scripts/log.sh which writes all its params to /tmp/testlab.log
Add env variable in tsp/common.sh: TS_ONFINISH if TSP_DIR is set
Change-Id: I87510f3fe73dc20d1842075cdf77186b8d298581
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Usage of patched version of tsp is advised, but not necessary.
In unpatched version output file is stored in "/tmp" directory
regardless of TMPDIR value.
Change-Id: If03cff1b83c3e4762efc82ff93a439e8b52e09f2
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
If a timeout occurs during a crawl an old timestamp will be preserved.
Change-Id: Ibae158baa1a8c8fbe09397225b312d29d44e715c
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Change-Id: Ie18cfe89cc4c7149ba0f53b6227d1e0d1dd818bc
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Change-Id: I4a299d124df4692670d46726177073980aefdc88
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Change-Id: I6713f6bbfba3aecf6108e01f21de709f3eadd0be
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Change-Id: I64e6f8643cda4e89b5b35b0d472fb548ec3320c8
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Change-Id: I56cf4cadb695bc12b5494f4fab404ab8905af733
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Change-Id: I25ada81e4f2224f8ec23d43c960ff435ad201397
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Change-Id: Ib593cf3958392807d05d6c07cecb27c93024f581
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Change-Id: Ie684ba0aecf2f6ab76da3a9a95560d29c6c4c549
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Change-Id: I6c00f39d69fcf617c0dcbfb266335c5b44a29604
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Change-Id: Ie06d890490a66616d909f7953c04e3c86df62a95
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Change-Id: I9445f87d19db642c14487c8bde11b48764f1656e
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Change-Id: Ib7f21dab314eca65a7ee4a0c85a66f0cce02af05
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
"target" argument is now mandatory.
Change-Id: I6dbcd586da1320ee1ee20f131e8290c4e06fdb13
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|
|
Change-Id: I8420edfdc606544bbc41bee93cd314d39e8048b1
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
|