[lttng-dev] [PATCH lttng-tools] Tests: use functions from utils.sh
Thibault, Daniel
Daniel.Thibault at drdc-rddc.gc.ca
Fri Sep 11 09:03:31 EDT 2015
------------------------------
Date: Thu, 10 Sep 2015 16:07:47 -0400
From: Jonathan Rajotte <jonathan.rajotte-julien at efficios.com>
---
diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh
@@ -952,6 +952,44 @@ function lttng_untrack_fail()
+function add_context_lttng()
[...]
+ if [[ $expected_to_fail -eq "1" ]]; then
+ test $ret -ne "0"
+ ok $? "Add context command failed as expected"
+ else
+ ok $ret "Add context command success as expected"
+ fi
------------------------------
To be consistent, the second message should be:
+ ok $ret "Add context command succeeded as expected"
Daniel U. Thibault, M.Sc.²
Scientifique de la défense, CME-PSC, Centre de recherches de Valcartier
Recherche et développement pour la défense Canada / Gouvernement du Canada
daniel.thibault at drdc-rddc.gc.ca / Tél: 418-844-4000x4245 Téléc: 418-844-4538
daniel.thibault at forces.gc.ca / Tél: 418-844-4000x4245 Téléc: 418-844-4538
Defence Scientist, MCCS-SPC, Valcartier Research Centre
Defence Research and Development Canada / Government of Canada
daniel.thibault at drdc-rddc.gc.ca / Tel: 418-844-4000x4245 Fax: 418-844-4538
daniel.thibault at forces.gc.ca / Tel: 418-844-4000x4245 Fax: 418-844-4538
DRDC is an agency of the Department of National Defence / RDDC est une agence du ministère de la Défense nationale
More information about the lttng-dev
mailing list