File: tests-for-released-version.diff

package info (click to toggle)
task 2.3.0%2Bdfsg-3
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,728 kB
  • ctags: 4,813
  • sloc: cpp: 34,267; perl: 18,509; python: 298; sh: 257; makefile: 73; ruby: 32
file content (19 lines) | stat: -rw-r--r-- 638 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: allow running tests against released version
 The test suite assumed that the version is a git hash.
 This patch removes this assumption, thus allowing to run tests against a
 released version of taskwarrior.
Author: Jakub Wilk <jwilk@debian.org>
Forwarded: no
Last-Update: 2013-03-08

--- a/test/basic.t
+++ b/test/basic.t
@@ -58,7 +58,7 @@
 
 # Test the _version command.
 $output = qx{../src/task rc:basic.rc _version 2>&1};
-like ($output, qr/[a-f0-9]{7}/, '_version - task version number');
+like ($output, qr/^([0-9.]+(?:beta[0-9]+)?|[a-f0-9]{7})$/, '_version - task version number');
 
 # Cleanup.
 unlink 'basic.rc';